220 9890 <7F327393-B9EF-46EB-A40E-86F80EFEF5BD@gmail.com> article
Path: news.gmane.org!not-for-mail
From: David Krauss <potswa@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Explicitly-defaulted enumeration operators
Date: Tue, 18 Mar 2014 12:51:08 +0800
Lines: 19
Approved: news@gmane.org
Message-ID: <7F327393-B9EF-46EB-A40E-86F80EFEF5BD@gmail.com>
References: <3B09C97E-7ADE-49ED-8C31-B5B41CD3DDE7@gmail.com> <781009e3-cd3c-4cb8-b034-b51a7c97c750@isocpp.org> <E797CAFE-4967-4881-870D-569BF15C757E@gmail.com> <10450602-fee9-48c4-9fa2-d000e434f5fb@isocpp.org> <6F532E62-C10A-404A-8F0D-662B7EA3D202@gmail.com> <24e85eaf-e67b-4a0b-acee-47d996d6f6ee@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\))
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1395118274 18294 80.91.229.3 (18 Mar 2014 04:51:14 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 18 Mar 2014 04:51:14 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCW25A7E3QCRBR5BT6MQKGQEMP2J5FY@isocpp.org Tue Mar 18 05:51:21 2014
Return-path: <std-proposals+bncBCW25A7E3QCRBR5BT6MQKGQEMP2J5FY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f198.google.com ([209.85.214.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCW25A7E3QCRBR5BT6MQKGQEMP2J5FY@isocpp.org>)
	id 1WPlzk-0006fr-Oa
	for gclcip-std-proposals@m.gmane.org; Tue, 18 Mar 2014 05:51:20 +0100
Original-Received: by mail-ob0-f198.google.com with SMTP id wn1sf25723178obc.9
        for <gclcip-std-proposals@m.gmane.org>; Mon, 17 Mar 2014 21:51:19 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:subject:from:in-reply-to:date
         :message-id:references:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=BJJeDFpDfRZTPWelTci2Lqk1pUCgbqcUQ/5yjQHhUiI=;
        b=iMv3TK7MMQKIe6v89shhW+Zj7yb34qf1Ojkofad43ukhF2c+1m6ZCTD2uDyhpSMswO
         ts+gvyNMpPn2cD41mN9VSl5aJGoVNLs0IHSrtCObpOFXP0clSVG3OtT4IWs6Vs28WR28
         AMS4pZGPaofHvEOn9szpgQMbrskEyjqHW/aqcRl+PfdvA4ee+nVG/l4AndvYJPwVx+sY
         ixJt0dPFOTAacaxEgK0dbcCHFKUyg0vLijQV/AxqcrjKErxsUQqrV490+v+WBX9BLTjH
         RNgeaUJSPxMQm6JI2pwwygvUpMDxj8MR9hjI+UArfqiYY7n/j7Momp++VM4iMuObojxw
         n7UA==
X-Gm-Message-State: ALoCoQlzcgCTE/cHMl/+PvS5sjr4MFUKc+8st9+118YLEmUeAQVemCasd+/7PRuWQKEdSEdAoNMm
X-Received: by 10.43.100.129 with SMTP id cw1mr9155770icc.30.1395118279876;
        Mon, 17 Mar 2014 21:51:19 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.43.135 with SMTP id w7ls1470413igl.14.canary; Mon, 17 Mar
 2014 21:51:19 -0700 (PDT)
X-Received: by 10.68.234.230 with SMTP id uh6mr8048778pbc.161.1395118279347;
        Mon, 17 Mar 2014 21:51:19 -0700 (PDT)
Original-Received: from mail-pd0-x229.google.com (mail-pd0-x229.google.com [2607:f8b0:400e:c02::229])
        by mx.google.com with ESMTPS id my2si2871813pbc.265.2014.03.17.21.51.19
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 17 Mar 2014 21:51:19 -0700 (PDT)
Received-SPF: pass (google.com: domain of potswa@gmail.com designates 2607:f8b0:400e:c02::229 as permitted sender) client-ip=2607:f8b0:400e:c02::229;
Original-Received: by mail-pd0-f169.google.com with SMTP id fp1so6575918pdb.28
        for <std-proposals@isocpp.org>; Mon, 17 Mar 2014 21:51:19 -0700 (PDT)
X-Received: by 10.68.44.71 with SMTP id c7mr30679803pbm.24.1395118279246;
        Mon, 17 Mar 2014 21:51:19 -0700 (PDT)
Original-Received: from [172.20.10.2] ([121.54.54.49])
        by mx.google.com with ESMTPSA id oz7sm48406514pbc.41.2014.03.17.21.51.16
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 17 Mar 2014 21:51:18 -0700 (PDT)
In-Reply-To: <24e85eaf-e67b-4a0b-acee-47d996d6f6ee@isocpp.org>
X-Mailer: Apple Mail (2.1874)
X-Original-Sender: potswa@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of potswa@gmail.com designates 2607:f8b0:400e:c02::229 as permitted
 sender) smtp.mail=potswa@gmail.com;       dkim=pass header.i=@gmail.com;
       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:9890
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/9890>


On 2014-03-18, at 12:42 PM, Matheus Izvekov <mizvekov@gmail.com> wrote:

> Well, he doesn't say explicitly, but it seems Walter's approach would be applicable to enum types just as well, or if not, could be easily extended to cover that.

Yeah, but it would be redundant. And you would lose the implicit/defaultable definitions because there would be no underlying operators.

> But I agree that enum's are currently too limited, being able to use any literal type as underlying type of an enum would be uber cool :-)

Hmm, that covers a lot. But it's a good idea, thanks!

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.
