From -135358520979297386
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc772,ef0c226459c03bdf
X-Google-Attributes: gidfc772,public
X-Google-Thread: f78e5,edd477ec92e5348f
X-Google-Attributes: gidf78e5,public
From: sbnaran@fermi.ceg.uiuc.edu (Siemel Naran)
Subject: Re: Protected Inheritance
Date: 1999/02/17
Message-ID: <slrn7clu0p.cs9.sbnaran@fermi.ceg.uiuc.edu>#1/1
X-Deja-AN: 445396823
X-NNTP-Posting-Host: fermi.ceg.uiuc.edu
Approved: stephen.clamage@sun.com (comp.std.c++)
References: <Pine.GSO.3.95-960729.990131142619.5694B-100000@finan.ncl.ac.uk> <slrn7bbi9a.q1a.sbnaran@localhost.localdomain> <sUPt2.16333$202.8056314@news1.teleport.com> <79aesq$qlr$1@uuneo.neosoft.com> <HEbu2.18017$202.8772558@news1.teleport.com> <36b9fd49.0@10.1.1.65> <AwGu2.19901$202.9740872@news1.teleport.com> <36C046BE.4233@clipper.ens.fr> <36c9a628.0@10.1.1.65>
X-UID: 0000000001
X-Status: $$$T
Organization: University of Illinois at Urbana-Champaign
Reply-To: sbnaran@KILL.uiuc.edu
Newsgroups: comp.std.c++,comp.lang.c++.moderated
Originator: clamage@taumet


On 17 Feb 99 05:59:17 GMT, Andrei Alexandrescu

>Guess what. I removed the "class" keyword in my friend declaration and MSVC
>6 gladly accepted the code.

I've tried this on como too, and it is not accepted.
   friend class T; // error
   friend T; // error
Como is probably right, because the standard forbids making a class
a friend to a template parameter.  However, I tend to think that
there's no harm in allowing this kind of friendship.

-- 
----------------------------------
Siemel B. Naran (sbnaran@uiuc.edu)
----------------------------------


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




