c++/4793: friend template to a template class is not recognized as friend

aoliva@gcc.gnu.org aoliva@gcc.gnu.org
Thu Nov 15 12:59:00 GMT 2001


Synopsis: friend template to a template class is not recognized as friend

State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Sun Nov 25 10:47:14 2001
State-Changed-Why:
    Your code is missing the template brackets and arguments when referencing a previously-declared template function.  Try:
    template <class S> friend int f<T,S>(T a, S b);

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4793&database=gcc



More information about the Gcc-bugs mailing list