Re: address of overloaded function with no contextual type information

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

 



Tiago Maluta wrote:
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

Thanks to John Love-Jensen:

http://gcc.gnu.org/ml/gcc-help/2006-04/msg00023.html

(Sorry for not finding it before posting, I thought I had searched exhaustively.)



[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