🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: STL operators != > <= >=

#1558
From: Etay Bogner
Date: Thu, 03 Aug 1995 08:06
20 lines
1108 bytes
I think that declaring those operators that you don't want to be genereted by the 
operator templates as private, without definitions would do the job.

something like :

class X {
		...
		private :
			bool operator >( ... ) ; // no need for a definition
		};

so the compiler will generate COMPILE errors iff anybody tries to use those 
EXPLICITLY, and it will NOT generate the template operators ...


-- Etay Bogner,
-- ebogner@ird.scitex.com ( OLD ),
-- Etay_Bogner@mail.stil.scitex.com,
-- Scitex Corp.
-- Israel.
Technical Details
Message-ID: <3vq030$8v1@lyman.pppl.gov>
Path: arc1-ca.pugleaf.net!nntpserver.pppl.gov!usenet
References: <3vpmv5$4t7@mujibur.inmind.com> <3vpnrq$50c@mujibur.inmind.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!nntpserver.pppl.gov!usenet
From: Etay Bogner <ebogner@ird.scitex.com>
Newsgroups: comp.std.c++
Subject: Re: STL operators != > <= >=
Date: 3 Aug 1995 08:06:56 GMT
Organization: Scitex Corp.
Message-ID: <3vq030$8v1@lyman.pppl.gov>
References: <3vpmv5$4t7@mujibur.inmind.com> <3vpnrq$50c@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:3vpnrq$50c@mujibur.inmind.com