From -9130868434607381683
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,7eaa8faac8da5016
X-Google-Attributes: gidf78e5,public
From: Valentin Bonnard <Bonnard.V@wanadoo.fr>
Subject: Re: Defect Report: member == in container iterators considered 	 harmful
Date: 1999/08/19
Message-ID: <37BC0B5B.4AD8@wanadoo.fr>#1/1
X-Deja-AN: 514870618
Content-Transfer-Encoding: 7bit
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <7p4nj8$n3u@enews4.newsguy.com> <37B95B96.7F37@wanadoo.fr> <7pcoa8$2kf0@enews2.newsguy.com> <37BABF02.3EBE@wanadoo.fr> <7pf1b2$ls8@enews3.newsguy.com>
X-Original-Date: Thu, 19 Aug 1999 15:49:15 +0200
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: izvestia.its.unimelb.edu.au 935102438 19087 128.250.29.17 (19 Aug 1999 22:40:38 GMT)
Organization: Ecole normale superieure
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUAN7yHyuEDnX0m9pzZAQGdAAF/aY0N8MNzM3lGRQhHqn8PLtvm/d1i89PI 1PoJVEaiLRIv1yNvfDw8RgQ4hFNF5EO0 =id6G
Mime-Version: 1.0
NNTP-Posting-Date: 19 Aug 1999 22:40:38 GMT
Newsgroups: comp.std.c++

Darin Adler wrote:

> I meant to propose a non-member function, which can be a friend if
> necessary. As I understand it, the friend function above *is* a non-member
> function.

Not really. It isn't a member, it isn't a normal global 
function, it's something completely magical, a friend.

> Can't a non-member function be a friend function?

Of course it can.

I just wanted to point out that:
- you did something (you changed your library code)
- you wrote some other thing in the DR, which makes 
  your DR proposed solution incorrect

-- 

Valentin Bonnard
---
[ 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              ]



