🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Igor Boukanov Thu, 15 Feb 1996 17:19
? about friend template
#3461
Author: Igor Boukanov
Date: Thu, 15 Feb 1996 17:19
25 lines
1544 bytes
   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. ]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads