Boost logo

Boost Users :

From: Michael Fawcett (michael.fawcett_at_[hidden])
Date: 2008-05-21 12:41:05


On Wed, May 21, 2008 at 12:22 PM, Noah Roberts <roberts.noah_at_[hidden]> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net