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.)