From 3918073077373226515
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,aabeddb13805d371
X-Google-Attributes: gidf78e5,public
From: Martin von Loewis <loewis@informatik.hu-berlin.de>
Subject: Re: friend lookup
Date: 1999/09/13
Message-ID: <p6qpuznixa5.fsf@informatik.hu-berlin.de>#1/1
X-Deja-AN: 524540340
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <7r5t5l$hmr$1@nnrp1.deja.com> <p6q3dwp2m7z.fsf@informatik.hu-berlin.de> <7r8nnl$kh8$1@nnrp1.deja.com> <p6q7llzho3k.fsf@informatik.hu-berlin.de> <37DB277E.B08FD4A2@att.net>
X-Original-Date: 13 Sep 1999 00:24:02 +0200
Content-Type: text/plain; charset=US-ASCII
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: ariel.ucs.unimelb.edu.au 937243476 25012 128.250.37.153 (13 Sep 1999 17:24:36 GMT)
Organization: Humboldt University Berlin, Department of Computer Science
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUAN90zPuEDnX0m9pzZAQHf5gF/VA4kthyVGpJVLoFRsaBC37MI0FMFYSqC dLaMSV8T3pSGbTvv5dkgAdB5VQWcDIFX =Vacz
Mime-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko")
User-Agent: Semi-gnus/6.10.12 SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (sparc-sun-solaris2.5.1) MULE/4.0 (HANANOEN)
NNTP-Posting-Date: 13 Sep 1999 17:24:36 GMT
Newsgroups: comp.std.c++

Martin Sebor <marts@att.net> writes:

> The problem is that 2 out of 4 major compilers I've tried this with fail
> to find the operator== in the template class and it's at least one of
> the compiler's vendor's position that due to 14.8.2.4, p4 (since the SS
> in S<int>::SS is a nested-name-specifier) the friend operator cannot be
> successfully looked up.

As usual, a number of alternatives are available:
- don't use these two major compilers that don't support your code, or
- change your code in a way that is accepted by all compilers. Most
  likely, not using nested classes will solve the problem.
- convince the vendors of the compilers rejecting your code that they
  are wrong. It appears that this approach has failed so far; you could
  go on exchanging arguments back and forth; or you could give up and
  use one of the other two options.

Not that this will help you, but I guess you are not looking for help
at this point.

Regards,
Martin
---
[ 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              ]



