From 1502189212264113751
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,c42fc9ad8a4a8a45,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2003-01-20 10:32:50 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: gp1@paradise.net.nz (Graeme Prentice)
Newsgroups: comp.std.c++
Subject: Lookup for operators in expressions 13.3.1.2
Date: Mon, 20 Jan 2003 18:32:47 +0000 (UTC)
Lines: 25
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <pprj2vgjdu35kj1bfi37fcld1p6h5fakbo@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: mail2news.demon.co.uk 1043087567 23572 10.0.0.1 (20 Jan 2003 18:32:47 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Mon, 20 Jan 2003 18:32:47 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.05)
	id 18agiz-000680-00
	for mail2news@news.news.demon.net; Mon, 20 Jan 2003 18:32:45 +0000
X-Received: by mulga.cs.mu.OZ.AU
	id FAA13811; Tue, 21 Jan 2003 05:32:41 +1100 (EST)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Path: comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Delivered-to: std-c++@ncar.ucar.edu
X-Orig-NNTP-Posting-Host: 203-96-146-45.apx1.paradise.net.nz (203.96.146.45)
X-Orig-X-Trace: fu-berlin.de 1042936425 24937083 203.96.146.45 (16 [98036])
X-Spam-Status: No, hits=0.6 required=5.0	tests=SPAM_PHRASE_00_01	version=2.41
X-Newsgroups: comp.std.c++
X-Newsreader: Forte Agent 1.93/32.576 English (American)
Xref: archiver1.google.com comp.std.c++:17271


Regarding the expression a @ b where @ is an operator such as << and a
has type T1

13.3.1.2 para 3 bullet 1 says

If T1 is a class type, the set of member candidates is the result of the
qualified lookup of T1::operator@ (13.3.1.1.1); otherwise, the set of
member candidates is empty.

Does this mean that the class definiiton of T1 has to be visible or does
it mean that if the lookup fails for whatever reason, the set of
candidates is empty.

For example if you write cout << "hello"; does the class definition for
the type of cout have to be visible.

Graeme

---
[ 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://www.jamesd.demon.co.uk/csc/faq.html                       ]



