🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1706

Re: STL operators != > <= >=

#1706
From: Etay Bogner
Date: Thu, 10 Aug 1995 07:15
35 lines
1654 bytes
mfinney@inmind.com wrote:

>Its true, that the definition conflict will not occur unless both namespaces have a
>local using as in your example.  But, this is a case where (in my opinion) the

>Michael Lee Finney

My point is that the "search for function" rulesshould change. The local "using" is almost mandatory since, 
I guess, no one wants to use qualification for each function. 

Its trivial that the "conflict will not occur unless both namespaces have a local using". I'm saying that 
its also trivial to solve the ambiguity.

The example again :

namespace N1 {
	void f();
	void g();
	};

namespace N2 {
	void f();
	};

using namespace N1;
using namespace N2;

void N1::g() {
	f(); // The standard says this is ambiguous. it should call N1::f()
	}

-- Etay Bogner,
-- Etay_Bogner@mail.stil.scitex.com,
-- Scitex Corp.
-- Israel.
Technical Details
Message-ID: <40cbmh$liu@lyman.pppl.gov>
Path: arc1-ca.pugleaf.net!nntpserver.pppl.gov!usenet
References: <3vpmv5$4t7@mujibur.inmind.com> <3vpnrq$50c@mujibur.inmind.com> <MATT.95Aug7100148@godzilla.EECS.Berkeley.EDU> <4065oq$3f4@mujibur.inmind.com> <407n9d$nb7@lyman.pppl.gov> <409bjt$59c@mujibur.inmind.com> <40ba9d$5ij@lyman.pppl.gov> <40brjt$343@mujibur.inmind.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nntpserver.pppl.gov!usenet
From: Etay Bogner <Etay_Bogner@mail.stil.scitex.com>
Newsgroups: comp.std.c++
Subject: Re: STL operators != > <= >=
Date: 10 Aug 1995 07:15:29 GMT
Organization: Scitex Corp.
Message-ID: <40cbmh$liu@lyman.pppl.gov>
References: <3vpmv5$4t7@mujibur.inmind.com> <3vpnrq$50c@mujibur.inmind.com> <MATT.95Aug7100148@godzilla.EECS.Berkeley.EDU> <4065oq$3f4@mujibur.inmind.com> <407n9d$nb7@lyman.pppl.gov> <409bjt$59c@mujibur.inmind.com> <40ba9d$5ij@lyman.pppl.gov> <40brjt$343@mujibur.inmind.com>
NNTP-Posting-Host: metay_pc.scitex.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1N (Macintosh; I; PPC)
To: mfinney@inmind.com
X-URL: news:40brjt$343@mujibur.inmind.com