220 2931 <6ab52344-d0a5-4bd5-82cc-28bd0428734c@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: stackmachine@hotmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: minimal enum class improvements
Date: Mon, 18 Feb 2013 06:06:42 -0800 (PST)
Lines: 75
Approved: news@gmane.org
Message-ID: <6ab52344-d0a5-4bd5-82cc-28bd0428734c@isocpp.org>
References: <c15b7b1c-6d6f-4472-8a43-b2fb374b92a1@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_27_27973502.1361196402818"
X-Trace: ger.gmane.org 1361196407 27752 80.91.229.3 (18 Feb 2013 14:06:47 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 18 Feb 2013 14:06:47 +0000 (UTC)
Cc: ricardofabianodeandrade@gmail.com
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDC7BQ4GSIMRB5HKRCEQKGQERCCZ7XI@isocpp.org Mon Feb 18 15:07:07 2013
Return-path: <std-proposals+bncBDC7BQ4GSIMRB5HKRCEQKGQERCCZ7XI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yh0-f70.google.com ([209.85.213.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDC7BQ4GSIMRB5HKRCEQKGQERCCZ7XI@isocpp.org>)
	id 1U7RN3-0004DU-Bp
	for gclcip-std-proposals@m.gmane.org; Mon, 18 Feb 2013 15:07:05 +0100
Original-Received: by mail-yh0-f70.google.com with SMTP id z20sf7499439yhz.5
        for <gclcip-std-proposals@m.gmane.org>; Mon, 18 Feb 2013 06:06:44 -0800 (PST)
X-Received: by 10.236.158.137 with SMTP id q9mr6095533yhk.24.1361196404701;
        Mon, 18 Feb 2013 06:06:44 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.82.112 with SMTP id h16ls1763635qey.0.gmail; Mon, 18 Feb
 2013 06:06:43 -0800 (PST)
X-Received: by 10.49.15.6 with SMTP id t6mr652343qec.20.1361196403054;
        Mon, 18 Feb 2013 06:06:43 -0800 (PST)
In-Reply-To: <c15b7b1c-6d6f-4472-8a43-b2fb374b92a1@isocpp.org>
X-Original-Sender: stackmachine@hotmail.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?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:2931
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/2931>

------=_Part_27_27973502.1361196402818
Content-Type: text/plain; charset=ISO-8859-1


   
   - Flag enums

enum flags X{ foo, bar, baz };
X x = foo | bar;
if(x & baz)
    x |= foo;


-- 

--- 
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/?hl=en.



------=_Part_27_27973502.1361196402818
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<ul><li>Flag enums</li></ul><p></p><div class=3D"prettyprint" style=3D"back=
ground-color: rgb(250, 250, 250); border-color: rgb(187, 187, 187); border-=
style: solid; border-width: 1px; word-wrap: break-word;"><code class=3D"pre=
ttyprint"><div class=3D"subprettyprint"><span style=3D"color: #008;" class=
=3D"styled-by-prettify">enum</span><span style=3D"color: #000;" class=3D"st=
yled-by-prettify"> flags X</span><span style=3D"color: #660;" class=3D"styl=
ed-by-prettify">{</span><span style=3D"color: #000;" class=3D"styled-by-pre=
ttify"> foo</span><span style=3D"color: #660;" class=3D"styled-by-prettify"=
>,</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> bar</sp=
an><span style=3D"color: #660;" class=3D"styled-by-prettify">,</span><span =
style=3D"color: #000;" class=3D"styled-by-prettify"> baz </span><span style=
=3D"color: #660;" class=3D"styled-by-prettify">};</span><span style=3D"colo=
r: #000;" class=3D"styled-by-prettify"><br>X x </span><span style=3D"color:=
 #660;" class=3D"styled-by-prettify">=3D</span><span style=3D"color: #000;"=
 class=3D"styled-by-prettify"> foo </span><span style=3D"color: #660;" clas=
s=3D"styled-by-prettify">|</span><span style=3D"color: #000;" class=3D"styl=
ed-by-prettify"> bar</span><span style=3D"color: #660;" class=3D"styled-by-=
prettify">;</span><span style=3D"color: #000;" class=3D"styled-by-prettify"=
><br></span><span style=3D"color: #008;" class=3D"styled-by-prettify">if</s=
pan><span style=3D"color: #660;" class=3D"styled-by-prettify">(</span><span=
 style=3D"color: #000;" class=3D"styled-by-prettify">x </span><span style=
=3D"color: #660;" class=3D"styled-by-prettify">&amp;</span><span style=3D"c=
olor: #000;" class=3D"styled-by-prettify"> baz</span><span style=3D"color: =
#660;" class=3D"styled-by-prettify">)</span><span style=3D"color: #000;" cl=
ass=3D"styled-by-prettify"><br>&nbsp; &nbsp; x </span><span style=3D"color:=
 #660;" class=3D"styled-by-prettify">|=3D</span><span style=3D"color: #000;=
" class=3D"styled-by-prettify"> foo</span><span style=3D"color: #660;" clas=
s=3D"styled-by-prettify">;</span><span style=3D"color: #000;" class=3D"styl=
ed-by-prettify"><br></span></div></code></div><br><br><p></p>

<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 e=
mail 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=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_27_27973502.1361196402818--

.
