Re: address of overloaded function with no contextual type information

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

 



On Wed, Aug 11, 2010 at 9:50 PM, Adam Burr <adamb@xxxxxxxxxxxxxxxxxx> wrote:
> Tiago Maluta wrote:
>>
>> Hi Adam,
>>
>> Change the line:
>>
>>>
>>>          int (*doAPtr) () = &thingA< T >::doA< 2 >;
>>>
>>
>> To:
>> int (*doAPtr)() = &thingA< int >::doA< 2 >;
>>
>
> Yes, that works but it isn't what I need. Luckily I just figured it out!
> That line should be:
>
> int (*doAPtr) () = &thingA< T >::template doA< 2 >;
>
>

I dind't know that construction, thanks.

--tm



[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