220 2935 <51226F7A.20506@wanadoo.fr> article
Path: news.gmane.org!not-for-mail
From: "Vicente J. Botet Escriba" <vicente.botet@wanadoo.fr>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: minimal enum class improvements
Date: Mon, 18 Feb 2013 19:14:18 +0100
Lines: 111
Approved: news@gmane.org
Message-ID: <51226F7A.20506@wanadoo.fr>
References: <c15b7b1c-6d6f-4472-8a43-b2fb374b92a1@isocpp.org> <6ab52344-d0a5-4bd5-82cc-28bd0428734c@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------050406000100090700020509"
X-Trace: ger.gmane.org 1361211258 16340 80.91.229.3 (18 Feb 2013 18:14:18 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 18 Feb 2013 18:14:18 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDH67CONY4PBB6W6RGEQKGQEJSBHSLY@isocpp.org Mon Feb 18 19:14:41 2013
Return-path: <std-proposals+bncBDH67CONY4PBB6W6RGEQKGQEJSBHSLY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ee0-f69.google.com ([74.125.83.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDH67CONY4PBB6W6RGEQKGQEJSBHSLY@isocpp.org>)
	id 1U7VEc-0004XG-TN
	for gclcip-std-proposals@m.gmane.org; Mon, 18 Feb 2013 19:14:38 +0100
Original-Received: by mail-ee0-f69.google.com with SMTP id e49sf7638151eek.0
        for <gclcip-std-proposals@m.gmane.org>; Mon, 18 Feb 2013 10:14:19 -0800 (PST)
X-Received: by 10.180.95.97 with SMTP id dj1mr1197575wib.4.1361211258731;
        Mon, 18 Feb 2013 10:14:18 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.109.8 with SMTP id ho8ls698479wib.17.canary; Mon, 18 Feb
 2013 10:14:18 -0800 (PST)
X-Received: by 10.14.183.67 with SMTP id p43mr47087390eem.10.1361211258045;
        Mon, 18 Feb 2013 10:14:18 -0800 (PST)
X-Received: by 10.14.183.67 with SMTP id p43mr47087386eem.10.1361211258012;
        Mon, 18 Feb 2013 10:14:18 -0800 (PST)
Original-Received: from smtp.smtpout.orange.fr (smtp02.smtpout.orange.fr. [80.12.242.124])
        by mx.google.com with ESMTP id v44si34493887eep.118.2013.02.18.10.14.17;
        Mon, 18 Feb 2013 10:14:18 -0800 (PST)
Received-SPF: neutral (google.com: 80.12.242.124 is neither permitted nor denied by best guess record for domain of vicente.botet@wanadoo.fr) client-ip=80.12.242.124;
Original-Received: from iMac-de-Vicente-Botet-Escriba.local ([92.139.17.114])
	by mwinf5d37 with ME
	id 1uEG1l0102TfxtY03uEHyQ; Mon, 18 Feb 2013 19:14:17 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
In-Reply-To: <6ab52344-d0a5-4bd5-82cc-28bd0428734c@isocpp.org>
X-Original-Sender: vicente.botet@wanadoo.fr
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 80.12.242.124 is neither permitted nor denied by best guess
 record for domain of vicente.botet@wanadoo.fr) smtp.mail=vicente.botet@wanadoo.fr
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?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:2935
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/2935>

This is a multi-part message in MIME format.
--------------050406000100090700020509
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Le 18/02/13 15:06, stackmachine@hotmail.com a =E9crit :
>
>   * Flag enums
>
> |
> enumflags X{foo,bar,baz };
> X x =3Dfoo |bar;
> if(x &baz)
>     x |=3Dfoo;
> |
>
>
Evidently this is not solution to flags sets.

Vicente

--=20

---=20
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 e=
mail 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-proposa=
ls/?hl=3Den.



--------------050406000100090700020509
Content-Type: text/html; charset=ISO-8859-1

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 18/02/13 15:06,
      <a class="moz-txt-link-abbreviated" href="mailto:stackmachine@hotmail.com">stackmachine@hotmail.com</a> a &eacute;crit&nbsp;:<br>
    </div>
    <blockquote
      cite="mid:6ab52344-d0a5-4bd5-82cc-28bd0428734c@isocpp.org"
      type="cite">
      <ul>
        <li>Flag enums</li>
      </ul>
      <div class="prettyprint" style="background-color: rgb(250, 250,
        250); border-color: rgb(187, 187, 187); border-style: solid;
        border-width: 1px; word-wrap: break-word;"><code
          class="prettyprint">
          <div class="subprettyprint"><span style="color: #008;"
              class="styled-by-prettify">enum</span><span style="color:
              #000;" class="styled-by-prettify"> flags X</span><span
              style="color: #660;" class="styled-by-prettify">{</span><span
              style="color: #000;" class="styled-by-prettify"> foo</span><span
              style="color: #660;" class="styled-by-prettify">,</span><span
              style="color: #000;" class="styled-by-prettify"> bar</span><span
              style="color: #660;" class="styled-by-prettify">,</span><span
              style="color: #000;" class="styled-by-prettify"> baz </span><span
              style="color: #660;" class="styled-by-prettify">};</span><span
              style="color: #000;" class="styled-by-prettify"><br>
              X x </span><span style="color: #660;"
              class="styled-by-prettify">=</span><span style="color:
              #000;" class="styled-by-prettify"> foo </span><span
              style="color: #660;" class="styled-by-prettify">|</span><span
              style="color: #000;" class="styled-by-prettify"> bar</span><span
              style="color: #660;" class="styled-by-prettify">;</span><span
              style="color: #000;" class="styled-by-prettify"><br>
            </span><span style="color: #008;" class="styled-by-prettify">if</span><span
              style="color: #660;" class="styled-by-prettify">(</span><span
              style="color: #000;" class="styled-by-prettify">x </span><span
              style="color: #660;" class="styled-by-prettify">&amp;</span><span
              style="color: #000;" class="styled-by-prettify"> baz</span><span
              style="color: #660;" class="styled-by-prettify">)</span><span
              style="color: #000;" class="styled-by-prettify"><br>
              &nbsp; &nbsp; x </span><span style="color: #660;"
              class="styled-by-prettify">|=</span><span style="color:
              #000;" class="styled-by-prettify"> foo</span><span
              style="color: #660;" class="styled-by-prettify">;</span><span
              style="color: #000;" class="styled-by-prettify"><br>
            </span></div>
        </code></div>
      <br>
      <br>
    </blockquote>
    Evidently this is not solution to flags sets.<br>
    <br>
    Vicente<br>
  </body>
</html>

<p></p>

-- <br />
&nbsp;<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 email to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href="http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en">http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en</a>.<br />
&nbsp;<br />
&nbsp;<br />

--------------050406000100090700020509--

.
