Michael Fawcett | 21 May 18:41

Re: tuple type question

On Wed, May 21, 2008 at 12:22 PM, Noah Roberts <roberts.noah <at> gmail.com> wrote:
> Maik Beckmann wrote:
>>
>> The compiler is right, omit the typename keyword if you're not inside a
>> template.  In this case you can even write
>>   tup.get<enumFoo>()
>> instead of
>>   tup.template get<enumFoo>()
>
> Should I have had that in my function?  The compiler didn't bitch about
> it not being there...
>
> I also test my code before posting to lists and such unless otherwise
> expressed.  The code I originally posted compiled and worked just fine.
>  Can you cite chapter and verse why it shouldn't have?  I try to be as
> standard compliant as I can.

http://www.comeaucomputing.com/techtalk/templates/#templateprefix

--Michael Fawcett

Gmane