From 3356754544997943081
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,4441c5f6d7843223
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2002-09-03 13:38:59 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: ahp6@email.byu.edu (Adam Peterson)
Newsgroups: comp.std.c++
Subject: Re: C++0x Wish List (explicit class)
Date: Tue, 3 Sep 2002 20:38:58 +0000 (UTC)
Organization: http://groups.google.com/
Lines: 20
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <a56a01a1.0209031231.78d784e6@posting.google.com>
References: <3D48C729.40503@spamnot.codeweavers.com> <ehdlkuo9gkcu69b6og2aup9o63knu7tpra@4ax.com> <8c8b368d.0208060921.43e9e9d5@posting.google.com> <aiphem$9e5$1@acs2.byu.edu> <3D589892.3050008@spamnot.codeweavers.com> <8c8b368d.0208150528.2bc34601@posting.google.com> <ajjk97$3pb$1@acs2.byu.edu> <8c8b368d.0208220503.1c974370@posting.google.com> <ak3eve$4n1$1@acs2.byu.edu> <vhGu8zAcrVZ9EwzA@robinton.demon.co.uk> <umpnmctkahdoaa@corp.supernews.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: mail2news.demon.co.uk 1031085538 2995 10.0.0.1 (3 Sep 2002 20:38:58 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Tue, 3 Sep 2002 20:38:58 +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 17mKRt-0000mA-00
	for mail2news@news.news.demon.net; Tue, 03 Sep 2002 20:38:57 +0000
X-Received: from localhost (localhost [[UNIX: localhost]]) by mulga.cs.mu.OZ.AU
	id GAA02588; Wed, 4 Sep 2002 06:38:52 +1000 (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-Newsgroups: comp.std.c++
X-NNTP-Posting-Date: 3 Sep 2002 20:31:51 GMT
Xref: archiver1.google.com comp.std.c++:13582

> I also like this proposal.
> 
> How about explicit classes also making all constructors explicit unless they
> are marked "implicit"?
> 
> Mike

I'm in favor of this part of it, except that I almost always want the
compiler generated copy ctor/assignment operator.  (80% of the time
that I don't, it's already suppressed incidentally by inheritance or
aggregation.)  If I could mark a class explicit to suppress conversion
operators I don't specify, but somehow still get the compiler
ctor/asmts, I'd use explicit on every class.

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



