www.digitalmars.com         C & C++   DMDScript  

c++ - member template name and template keyword

See 14.2 Names of template specializations [temp.names], paragraph 4, of the
C++ standard:

struct A
  template<int> static void f();
  // Error: no identifier for declarator

template<class T> void g(T t)
  T::template f<1>();
  // Error: identifier expected

int main()

  return 0;

bye, Christof

http://cmeerw.org                                 JID: cmeerw jabber.at
mailto cmeerw at web.de

...and what have you contributed to the Net?
Dec 14 2002