Topic: ? about friend template


Author: boukanov@kvark.fi.uib.no (Igor Boukanov)
Date: 1996/02/15
Raw View
   How have I to declare according to the standard template class to be
a friend of non template class? I suppose it should be done in the next way:

template<class T> class template_class{
   ...
};

class simple_class{
   friend template<class T> class template_class;
   // or template<class T> friend class template_class ?;
   ...
};

   The question is appeared because g++ and DEC C++ for OSF generate
errors in such lines.

P.S.
   This is modified version of my message posted to comp.lang.c++.

--
With best regards, Igor Boukanov (igor.boukanov@fi.uib.no).
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]