December 15, 2002 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()
{
g(A());
return 0;
}
bye, Christof
--
http://cmeerw.org JID: cmeerw@jabber.at mailto cmeerw at web.de
...and what have you contributed to the Net?
|
Copyright © 1999-2021 by the D Language Foundation