220 30176 <199262c4-406f-4e2e-8ae9-d63829299cf7@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: m.cencora@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: enum_cast proposal
Date: Tue, 3 Jan 2017 08:02:01 -0800 (PST)
Lines: 68
Approved: news@gmane.org
Message-ID: <199262c4-406f-4e2e-8ae9-d63829299cf7@isocpp.org>
References: <efdf2357-00a6-408a-8772-12f99135a880@isocpp.org>
 <1483532086.2yCkjVBYWJ@tjmaciei-mobl1> <bb835a83-0f69-4a76-97df-581c2a2ae8d8@isocpp.org>
 <CACGiwhEKaOnDPVmSi0=a5GK-NJ-jsgafm5y9ZY5iOQrNega+FA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_2481_525664368.1483459321974"
X-Trace: blaine.gmane.org 1483459324 432 195.159.176.226 (3 Jan 2017 16:02:04 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 3 Jan 2017 16:02:04 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBD7YFUMJRYMBB6UVV7BQKGQEEWWK7IY@isocpp.org Tue Jan 03 17:01:59 2017
Return-path: <std-proposals+bncBD7YFUMJRYMBB6UVV7BQKGQEEWWK7IY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ua0-f198.google.com ([209.85.217.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBD7YFUMJRYMBB6UVV7BQKGQEEWWK7IY@isocpp.org>)
	id 1cORXD-0008CW-9Y
	for gclcip-std-proposals@m.gmane.org; Tue, 03 Jan 2017 17:01:59 +0100
Original-Received: by mail-ua0-f198.google.com with SMTP id 96sf297117892uaq.7
        for <gclcip-std-proposals@m.gmane.org>; Tue, 03 Jan 2017 08:02:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=ujK4cYNjBZ5V8qJmxMVi65d+3d3NdVnZl3YGvgym4kc=;
        b=bnGTnXDUV90VH1tNv8iabMI9V7XqNnuWYVAfR9pXuSTsXSTork6UcZ3ZfqOAHQYCoq
         0oiGzTSrnGVrkVrB0NYAawGitW3WINuhdR/uasF1hiKX8ko+sG1k8SgBhAHzLB+llDXU
         NpD6eLi2nTKXq+vaMDH9zeXp0bRsAbTaAaQXqqZ0ElWcc2oFhIpKEafmmMmtxz7Dw/Id
         Ytg5IxnAk3YI9xzrjSsbjs3DgcZL8mAVjcJ9zIeuR/sW54UGLkKfQxXl1/X2hjRqVlut
         K3HsEfusyn9fvNAJ8BTcWfJSmqZiEOq2pWyglD0qlsVTJWf1cEJdx198+u1ewp2tJ513
         pAOA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=ujK4cYNjBZ5V8qJmxMVi65d+3d3NdVnZl3YGvgym4kc=;
        b=QjZvGCf7/DmBWyHrEg7829tJe3AhSmteLNcchHqanI+BwNIMfD7PbpUGw2pdxK8FtK
         KxoXV9ft4ynuM3aX5sSE8a26HKa02xmHGFB+wwl3b9BB9Bzt4FaNLqa9W9jnfwZcVO1a
         gXyj9P5/0qOq0vZmjmeQ1uWDz6+ECRsx4de+mFqj7mesXZlnm4sNLqprJLuKXuc9o3jQ
         HW1PnPoWgsraYIn/fx6/KQ9qBwK3/Fs0C0zFgQN7irhiLDPKSRneWeEJb//DCYYhC/qK
         MIsSbXYsv1nJPRprFBS2z/Bw6q7NPOFRg5trQP7wSNUVjewS2gl3j6w4eEzDZQLRI28b
         M1Ig==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=ujK4cYNjBZ5V8qJmxMVi65d+3d3NdVnZl3YGvgym4kc=;
        b=mEf/CQLyn2KaW5ZY5MLBcSG54SDcqQMlApl8BL+Je1dAiZN9duVyfgUgWs2k1Q4eJ2
         lGc122BiFaxy9kBXzIooBvnF2zOtr/Q9PvVRPbd87v3PAywGxpw0EQBrTZMx05Ax9512
         wMKhSiZk2u632puw9hYxgN9F6+lX8ASL7SX3CgyhDDQsS5eNXYcuwoYEodvW7pw1Cn8L
         v2LDHqD4fC4YMF3tu3QZSl79GXV+gMn7U6noiS3RlTZKs0/lhPUgfNkdFM3zA0zuf1uu
         nGIyZuYh4IP9n7Ob/aGoA0wwLo0u0Exk7leEwjMkEM8N4+Tgfl2y2lHfYoM4AuUfaZM/
         i3Jw==
X-Gm-Message-State: AIkVDXJiWKqgo98EF5YhsPnB87MPZc3cvuqIiO72WI6i53QHeQ7vqwp+DbKzOQlofSXFzg==
X-Received: by 10.31.136.136 with SMTP id k130mr12792801vkd.2.1483459323210;
        Tue, 03 Jan 2017 08:02:03 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.6.227 with SMTP id 90ls26658661otx.34.gmail; Tue, 03 Jan
 2017 08:02:02 -0800 (PST)
X-Received: by 10.157.17.3 with SMTP id g3mr2874842ote.8.1483459322381;
        Tue, 03 Jan 2017 08:02:02 -0800 (PST)
In-Reply-To: <CACGiwhEKaOnDPVmSi0=a5GK-NJ-jsgafm5y9ZY5iOQrNega+FA@mail.gmail.com>
X-Original-Sender: m.cencora@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: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:30176
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/30176>

------=_Part_2481_525664368.1483459321974
Content-Type: multipart/alternative; 
	boundary="----=_Part_2482_36550.1483459321974"

------=_Part_2482_36550.1483459321974
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable


W dniu wtorek, 3 stycznia 2017 16:08:47 UTC+1 u=C5=BCytkownik D. B. napisa=
=C5=82:
>
> Do you expect the handle the common case where people use enums as=20
> bitmasks of different enumerators?
>
>
No, I don't think so.

But such a function for sure can be written using enum_cast:
go through each bit and test each one of them with enum_cast.

Regards,
Maciej

--=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.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/199262c4-406f-4e2e-8ae9-d63829299cf7%40isocpp.or=
g.

------=_Part_2482_36550.1483459321974
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br>W dniu wtorek, 3 stycznia 2017 16:08:47 UTC+1 u=C5=BCy=
tkownik D. B. napisa=C5=82:<blockquote class=3D"gmail_quote" style=3D"margi=
n: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><di=
v dir=3D"ltr"><div>Do you expect the handle the common case where people us=
e enums as bitmasks of different enumerators?<br><br></div></div></blockquo=
te><div><br></div><div>No, I don&#39;t think so.</div><div><br></div><div>B=
ut such a function for sure can be written using enum_cast:</div><div>go th=
rough each bit and test each one of them with enum_cast.</div><div><br></di=
v><div>Regards,</div><div>Maciej</div></div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/199262c4-406f-4e2e-8ae9-d63829299cf7%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/199262c4-406f-4e2e-8ae9-d63829299cf7=
%40isocpp.org</a>.<br />

------=_Part_2482_36550.1483459321974--

------=_Part_2481_525664368.1483459321974--

.
