Code compiles with g++ 3.3 but not g++ 4.4

daviddoria daviddoria@gmail.com
Fri Oct 16 21:57:00 GMT 2009




> If you explicitely instantiate the template member function, it will
> work:
> template class Graph<int,int,int>::Graph(int, int, void (*)(char *));
> 

Thanks for the quick reply! However, When I add that line to the bottom of
instances.inc and try to compile, I get:

In file included from graph.cpp:2:
instances.inc:6: error: expected unqualified-id before ‘int’
instances.inc:6: error: expected ‘)’ before ‘int’

The updated files are in the same location if you need them.

Thanks,

Dave
-- 
View this message in context: http://www.nabble.com/Code-compiles-with-g%2B%2B-3.3-but-not-g%2B%2B-4.4-tp25929745p25931162.html
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list