220 9886 <E797CAFE-4967-4881-870D-569BF15C757E@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:06:31 +0800
Lines: 63
Approved: news@gmane.org
Message-ID: <E797CAFE-4967-4881-870D-569BF15C757E@gmail.com>
References: <3B09C97E-7ADE-49ED-8C31-B5B41CD3DDE7@gmail.com> <781009e3-cd3c-4cb8-b034-b51a7c97c750@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: multipart/alternative; boundary="Apple-Mail=_925D69B6-4227-412D-A568-BEB6F354E622"
X-Trace: ger.gmane.org 1395115599 26191 80.91.229.3 (18 Mar 2014 04:06:39 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 18 Mar 2014 04:06:39 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCW25A7E3QCRBVUMT6MQKGQEJPAR6IY@isocpp.org Tue Mar 18 05:06:49 2014
Return-path: <std-proposals+bncBCW25A7E3QCRBVUMT6MQKGQEJPAR6IY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pd0-f199.google.com ([209.85.192.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCW25A7E3QCRBVUMT6MQKGQEJPAR6IY@isocpp.org>)
	id 1WPlIe-0000Na-Ju
	for gclcip-std-proposals@m.gmane.org; Tue, 18 Mar 2014 05:06:48 +0100
Original-Received: by mail-pd0-f199.google.com with SMTP id x10sf15584286pdj.6
        for <gclcip-std-proposals@m.gmane.org>; Mon, 17 Mar 2014 21:06:47 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:mime-version:subject:date
         :references:to:in-reply-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=flCkZ8AeGg5zTcn/iAfbEbtd1P8raYFDyGLI9E9X+co=;
        b=a6L5wDY/dWsMQG0+Aq+GgorBh2cEc2EC12HGrcvABXX3TwL1uvpI61S/AbS0RlD/Vt
         KZoGNgw0t/Di9C3Vzjcu76FE7Fr94iF3w/DLDj/APjR4kkwOrtYjy41k+VWBabnzrnhA
         e63k2FzgILu+P9zTr5/EZaQKNpoZy5rMH8SlpoUz8TiB3nzJ7TeymmsYGJNxIDM+OeAf
         9R93pr74ZefukfHb8G4GcpQT4q5uog8j49eSYbGfbCyWyk+q8JvirGNMo3VElufMq1hy
         13Vzls6jHZNxN1nwp6f0N6Rt2BbW/Ak+Wb+p1cHZ29aYBWBwv5dh9Zgin/3puhgL62Yz
         AaWA==
X-Gm-Message-State: ALoCoQl3KR3jB6Uk3Wx0k3uBbt2AC5/m/6m77o1I0E3zQaRLNCKIQu1CkFPsp/AGD8XKqi1jk5FZ
X-Received: by 10.68.216.230 with SMTP id ot6mr10890737pbc.3.1395115607540;
        Mon, 17 Mar 2014 21:06:47 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.43.135 with SMTP id w7ls1457062igl.14.canary; Mon, 17 Mar
 2014 21:06:46 -0700 (PDT)
X-Received: by 10.66.240.103 with SMTP id vz7mr30140135pac.37.1395115605799;
        Mon, 17 Mar 2014 21:06:45 -0700 (PDT)
Original-Received: from mail-pb0-x231.google.com (mail-pb0-x231.google.com [2607:f8b0:400e:c01::231])
        by mx.google.com with ESMTPS id sh5si8793140pbc.170.2014.03.17.21.06.45
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 17 Mar 2014 21:06:45 -0700 (PDT)
Received-SPF: pass (google.com: domain of potswa@gmail.com designates 2607:f8b0:400e:c01::231 as permitted sender) client-ip=2607:f8b0:400e:c01::231;
Original-Received: by mail-pb0-f49.google.com with SMTP id jt11so6575894pbb.8
        for <std-proposals@isocpp.org>; Mon, 17 Mar 2014 21:06:45 -0700 (PDT)
X-Received: by 10.66.248.227 with SMTP id yp3mr29652359pac.116.1395115605287;
        Mon, 17 Mar 2014 21:06:45 -0700 (PDT)
Original-Received: from [172.20.10.2] ([121.54.54.49])
        by mx.google.com with ESMTPSA id st4sm80878841pab.34.2014.03.17.21.06.42
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 17 Mar 2014 21:06:44 -0700 (PDT)
In-Reply-To: <781009e3-cd3c-4cb8-b034-b51a7c97c750@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:c01::231 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:9886
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/9886>

--Apple-Mail=_925D69B6-4227-412D-A568-BEB6F354E622
Content-Type: text/plain; charset=ISO-8859-1


On 2014-03-18, at 12:00 PM, Matheus Izvekov <mizvekov@gmail.com> wrote:

> Doesn't n3515 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3515.pdf
> cover what you are looking for?

It proposes a feature that would supersede some uses of enumerations, but even if it is adopted, the problem of correct usage of enumerations would still remain.

A bitfield-like enumeration class wouldn't want to define addition and subtraction, except maybe as bitwise operations OR and ANDNOT. Not every enumeration with operators wants to be an opaque typedef.

Thanks for the tip, though! Was that proposal recommended for future study?

-- 

--- 
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/.

--Apple-Mail=_925D69B6-4227-412D-A568-BEB6F354E622
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=ISO-8859-1

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset=
=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-=
mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 2014&=
ndash;03&ndash;18, at 12:00 PM, Matheus Izvekov &lt;<a href=3D"mailto:mizve=
kov@gmail.com">mizvekov@gmail.com</a>&gt; wrote:</div><br class=3D"Apple-in=
terchange-newline"><blockquote type=3D"cite"><div dir=3D"ltr">Doesn't n3515=
 <a href=3D"http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3515.p=
df">http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3515.pdf</a><b=
r>cover what you are looking for?<br></div></blockquote><div><br></div><div=
>It proposes a feature that would supersede some uses of enumerations, but =
even if it is adopted, the problem of correct usage of enumerations would s=
till remain.</div></div><br><div>A bitfield-like enumeration class wouldn&r=
squo;t want to define addition and subtraction, except maybe as bitwise ope=
rations OR and ANDNOT. Not every enumeration with operators wants to be an =
opaque typedef.</div><div><br></div><div>Thanks for the tip, though! Was th=
at proposal recommended for future study?</div><div><br></div></body></html=
>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--Apple-Mail=_925D69B6-4227-412D-A568-BEB6F354E622--

.
