🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41546

Help making template class a friend

#41546
From: Jacob Allan
Date: Tue, 19 Mar 1996 00:00
13 lines
861 bytes
I'm running gcc version 2.7.2 under bsdi on a Pentium and I'd like 
to make a template class a friend of a non-template class as in:

class foo
{
     template <class T> friend class bar;
...
};

Is there a good way to do this? Thanks.

     -Jacob, allanj@scubed.com
      (please reply via e-mail)
Technical Details
Message-ID: <314E9EC2.6C6D@scubed.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,66c99ebb7b0e82e,start
X-Google-Attributes: gid11318c,public
From: Jacob Allan <allanj@scubed.com>
Subject: Help making template class a friend
Date: 1996/03/19
Message-ID: <314E9EC2.6C6D@scubed.com>
X-Deja-AN: 143330692
sender: usenet@scubed.com (USENET News System)
cc: allanj@scubed.com
content-type: text/plain; charset=us-ascii
organization: S-Cubed
mime-version: 1.0
reply-to: allanj@scubed.com
newsgroups: gnu.gcc.help
x-mailer: Mozilla 2.0 (Macintosh; I; 68K)