🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

? about friend templates.

#3446
From: 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
]
Technical Details
Message-ID: <31234C10.121E@fi.uib.no>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: Igor Boukanov <igor.boukanov@fi.uib.no>
Newsgroups: comp.std.c++
Subject: ? about friend templates.
Date: 15 Feb 1996 15:42:55 GMT
Organization: University of Bergen, Norway
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <31234C10.121E@fi.uib.no>
NNTP-Posting-Host: taumet.eng.sun.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-2"
Content-Transfer-Encoding: 7bit
X-Nntp-Posting-Host: afrodite.fi.uib.no
X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/720)
X-Lines: 22
Content-Length: 560
Originator: clamage@taumet