friend templates in gcc-2.8.0 & egcs-1.0.1

Jeffrey A Law law@cygnus.com
Sun Feb 8 00:14:00 GMT 1998


  In message <orhg6l5s7t.fsf@amazonas.dcc.unicamp.br>you write:
  > This should be in the FAQ list.  Jeff, would you put this in?
[ ... ]
  > In order to make a specialization of a template function a friend of a
  > (possibly template) class, you must explicitly state that the friend
  > function is a template, by appending angle brackets to its name, and
  > this template function must have been declared already.  An error in
  > the last public comment draft of the ANSI/ISO C++ Standard has led
  > people to believe that was not necessary, but it is, and it was fixed
  > in the final version of the Standard.
Done.

jeff



More information about the Gcc mailing list