This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [4.6.2] problem compiling templates


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]