This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: [4.6.2] problem compiling templates
- From: Ian Lance Taylor <iant at google dot com>
- To: Bogdan Slusarczyk <Bogdan dot Slusarczyk at aldec dot com dot pl>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 29 Nov 2011 06:34:08 -0800
- Subject: Re: [4.6.2] problem compiling templates
- References: <4ED4BE50.6020202@aldec.com.pl>
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