Topic: ? about friend templates.


Author: Igor Boukanov <igor.boukanov@fi.uib.no>
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 ?;
   ...
};

   And the question is that 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
  summarized in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
]