c++.beta - template friend: ambiguous reference to symbol
-
Christof Meerwald
(24/24)
Oct 03 2003
template
void f(T t)
template<class T> void f(T t) { } struct C { template<class T2> friend void f(T2); void g() { f(0); // Error: ambiguous reference to symbol // Had: f(T) // and: f(T2) } }; int main() { C c; c.g(); } Extracted from Boost's format library. bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net?
Oct 03 2003