Re: Compiler error using 4.5.2 with function template

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

 



On 5 March 2011 16:17, Edward Diener wrote:
>
> template<class T> struct ATemplate { };

The template parameter T must be a type.

> template<class T> void check(ATemplate<&T::SomeFuncTemplate<int> > *);

&T::SomeFuncTemplate<int> is an expression taking the address of a
member, it is not a type.


[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