This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Template and member function pointers compile question


John Love-Jensen wrote:

Hi Tristan,

Change this...

pFunc = &TestClass<T>::calculate<true,true,true>;

...to this...

pFunc = &TestClass<T>::template calculate<true,true,true>;

And do the same in the other similar areas. Does that fix the issue?

--Eljay


Thanks. That works for GCC and MSVC.

Could you point us to any documentation on this area, just out of interest?

Tristan



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]