🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #3461

? about friend template

#3461
From: 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. ]
Technical Details
Message-ID: <4fvj7u$ku0@ugress.uib.no>
Path: arc1-ca.pugleaf.net!chronicle.mti.sgi.com!austern

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!chronicle.mti.sgi.com!austern
From: boukanov@kvark.fi.uib.no (Igor Boukanov)
Newsgroups: comp.std.c++
Subject: ? about friend template
Date: 15 Feb 1996 09:19:51 PST
Organization: Fysisk institutt, Universitetet i Bergen
Approved: austern@isolde.mti.sgi.com
Message-ID: <4fvj7u$ku0@ugress.uib.no>
NNTP-Posting-Host: isolde.mti.sgi.com
Summary: How have one to declare friend templates
Keywords: c++, template
X-Original-Date: 15 Feb 1996 15:24:46 GMT
X-Newsreader: TIN [version 1.2 PL2]
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBVAwUBMSNrUky4NqrwXLNJAQGepAIAzNyp4ovFWU7BPGK62JkKBRtHDorhLJ6v
 uHuhgFv8O+ATPebo3HJxRyHQe90cOFfW85q56jQGVsMOYf8PrVtxPw==
 =sWz+
Originator: austern@isolde.mti.sgi.com