Re: [4.6.2] problem compiling templates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bogdan Slusarczyk <Bogdan.Slusarczyk@xxxxxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux