Not easy-to-understand error message from icc in AsyncCall.cc

From: Kinkie <gkinkie_at_gmail.com>
Date: Mon, 31 Jan 2011 17:22:25 +0100

Hi all,
  maybe someone with a deeper understanding of c++ than me could check
out this error?
See
http://build.squid-cache.org/job/3.HEAD-amd64-CentOs-icc/47/console

The erorr is:
../../../src/base/AsyncCall.cc(10): error #1931: explicit
specialization of member "InstanceId<Class>::Prefix [with
Class=AsyncCall]" must precede its first use (at line 10)
  template< > std::ostream & InstanceId<AsyncCall>
::print(std::ostream &os) const { return os << Prefix << value; }
template< > const char *InstanceId<AsyncCall> ::Prefix = "call";
template< > InstanceId<AsyncCall> ::Value InstanceId<AsyncCall> ::Last
= 0;

The offending line is:
InstanceIdDefinitions(AsyncCall, "call");

InstandceIdDefinitions is a helper macro defined in src/base/InstanceId.h

Thanks!

-- 
    /kinkie
Received on Mon Jan 31 2011 - 16:22:33 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 01 2011 - 12:00:06 MST