🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Igor Boukanov Thu, 15 Feb 1996 15:42
? about friend templates.
#3446
Author: Igor Boukanov
Date: Thu, 15 Feb 1996 15:42
27 lines
1433 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 ?;
   ...
};

   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
]
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