[4.6.2] problem compiling templates

Ian Lance Taylor iant@google.com
Tue Nov 29 19:03:00 GMT 2011


Bogdan Slusarczyk <Bogdan.Slusarczyk@aldec.com.pl> writes:

> 	void foo()
> 	{
> 		Filter< Predicate > filter( Predicate( _enum ) ); //error is here

This line is declaring a function named "filter".  Is that really what
you want to do?

http://en.wikipedia.org/wiki/Most_vexing_parse

Ian



More information about the Gcc-help mailing list