220 41316 <11be50bf-0922-4328-9006-9c0b2cdbb33b@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Barry Revzin <barry.revzin@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: allow enums in std::integer_sequence<class T, T...>
Date: Sun, 6 Jan 2019 08:38:12 -0800 (PST)
Lines: 59
Approved: news@gmane.org
Message-ID: <11be50bf-0922-4328-9006-9c0b2cdbb33b@isocpp.org>
References: <8913f62c-8818-46a4-8426-87660d24d989@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_1376_1209456012.1546792692411"
X-Trace: blaine.gmane.org 1546792570 16812 195.159.176.226 (6 Jan 2019 16:36:10 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 6 Jan 2019 16:36:10 +0000 (UTC)
Cc: huili80@gmail.com
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCJJTG7CS4ARB5O5ZDQQKGQEBFL4TRQ@isocpp.org Sun Jan 06 17:36:06 2019
Return-path: <std-proposals+bncBCJJTG7CS4ARB5O5ZDQQKGQEBFL4TRQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw1-f70.google.com ([209.85.161.70])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCJJTG7CS4ARB5O5ZDQQKGQEBFL4TRQ@isocpp.org>)
	id 1ggBPA-0004Dv-Ke
	for gclcip-std-proposals@m.gmane.org; Sun, 06 Jan 2019 17:36:04 +0100
Original-Received: by mail-yw1-f70.google.com with SMTP id i2sf26411477ywb.1
        for <gclcip-std-proposals@m.gmane.org>; Sun, 06 Jan 2019 08:38:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:cc:message-id:in-reply-to:references:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=3RqN86uuXORPoKJUEOAypYB8l83cvp9tvu6fvrOJ6ZM=;
        b=LTKNMFU+iQaFhrtsQic09rz1qLX1uJ3rNYT/cXexXVPdCJgml5pgVCirIeR5luP5cv
         nNelORpdNKUAs3E8OAbFCFToX+l0shng9irNfoHNRSqliQa/PBudaL1+UW1Fi/Z5fTDa
         Nxz1Kk5oRjRtvcT5HzkZb7ecZSruSlB5a4UJnsA7O8ALs0Khboj3HATxtIayNORoIvZl
         Mug25lKJORZD3bfGs3dQlnn+hDXQL41c/QSciRQ5oyCAfwx+ohjE9vdqfeOsTgtXRGKp
         tuybLtHPImFmEl/OW8smhWkUtMc+X9/QiZu5U4M6wt7c9k5dTSmlgMVOBoB0017MhjVx
         +H7A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:cc:message-id:in-reply-to:references:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=3RqN86uuXORPoKJUEOAypYB8l83cvp9tvu6fvrOJ6ZM=;
        b=qvyLVZR5k352mxPOTemxcjnaQ2r9RLoxrLlkl9k89g9QbPm+/FHBftFmY/GFQAy2MK
         j5YDBhBN8UWUd0JxwprRPUFIgRN2hUZpWX2dTOnRtqrirbsDMCvdfNtP08F/2x8EzoMo
         fW73aidqJM0ak0JfrYGe1/LlX3Lw6rPHpYDCyRITqCCoQpiCjcAO+IHYd0cXiDmx0ux7
         pdhqAwQE1iG4x6dYoBqJmenGxleMEsmEbxyaYSRavBnv9xLwHs8jwkc1GYLakUH/+ZJy
         jMvO7wZ2P9Rii+um6e+DbKaXxt5pv/n+zs0AjAvWcPKUMAJJYP9UZ8tAjNr8+LScpw5L
         i6EQ==
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:cc: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=3RqN86uuXORPoKJUEOAypYB8l83cvp9tvu6fvrOJ6ZM=;
        b=D8LzYtsloesG2i5pDE/XuFj9Fx1v8CdoaFvMGngDzz44mUwt76mNU3kuD2Zuv9YVS8
         HU/e8IxDNGeaEheu09MjD6JcVMwa2JUBR36ndieLU8VrwapG8xkyJV6yCFH2B9yT9L1w
         FS7XGrGB3GqrXGK25j2ZWczC/rk7Ngr+AUL99lAeswOMUx3rWvYDwAjwlBZWhxag573F
         YwpO0JTX2GBnX4Px5gBM2Bf/GFTLUonbQXPWDxvEfzUYW3LV6bg9xcoldPpPUD7eB+FG
         +KcqFtrwvSwKPI8lkFXr8uX9efDP190CTCPTLNj5E+hOzXKV9QCJV0VrTZSvHMsYysMZ
         132g==
X-Gm-Message-State: AJcUukfOW2f6CUkqjBZS0wY0/JwRJyweRQCfFOHzGjoZ8jTXLnK2mSLu
	2z3cRuQ5sjAUHCyKvEeIhxCFcw==
X-Google-Smtp-Source: ALg8bN40Hm85dtc7HSpEPDR/M+cnuUx92yzeYQ0CIIeAkD91DvWTQ2G4TnQJcTtGIw+K5azcgiiH6Q==
X-Received: by 2002:a25:99c2:: with SMTP id q2mr8554776ybo.40.1546792695037;
        Sun, 06 Jan 2019 08:38:15 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a81:3515:: with SMTP id c21ls23146959ywa.8.gmail; Sun, 06
 Jan 2019 08:38:13 -0800 (PST)
X-Received: by 2002:a0d:dd4e:: with SMTP id g75mr714812ywe.5.1546792693212;
        Sun, 06 Jan 2019 08:38:13 -0800 (PST)
In-Reply-To: <8913f62c-8818-46a4-8426-87660d24d989@isocpp.org>
X-Original-Sender: Barry.Revzin@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: 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:41316
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/41316>

------=_Part_1376_1209456012.1546792692411
Content-Type: multipart/alternative; 
	boundary="----=_Part_1377_1497285061.1546792692411"

------=_Part_1377_1497285061.1546792692411
Content-Type: text/plain; charset="UTF-8"

On Sunday, January 6, 2019 at 7:55:07 AM UTC-6, hui...@gmail.com wrote:
>
> According to the standard, in std::integer_sequence<class T,T...>, T must 
> be an integer type. However, it would be very useful to allow enums too.
> I can't think of any good reason why enums must be banned there; and in 
> fact std::integral_constant<class T, T> allows T to be an enum type.
>
>
What's the *positive *motivation for the change? What's the use-case for 
allowing enums? 

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/11be50bf-0922-4328-9006-9c0b2cdbb33b%40isocpp.org.

------=_Part_1377_1497285061.1546792692411
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Sunday, January 6, 2019 at 7:55:07 AM UTC-6, hui...@gma=
il.com wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-le=
ft: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">=
According to the standard, in std::integer_sequence&lt;class T,T...&gt;, T =
must be an integer type. However, it would be very useful to allow enums to=
o.<div>I can&#39;t think of any good reason why enums must be banned there;=
 and in fact std::integral_constant&lt;class T, T&gt; allows T to be an enu=
m type.</div><div><br></div></div></blockquote><div><br></div><div>What&#39=
;s the <i>positive </i>motivation for the change? What&#39;s the use-case f=
or allowing enums?=C2=A0</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/11be50bf-0922-4328-9006-9c0b2cdbb33b%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/11be50bf-0922-4328-9006-9c0b2cdbb33b=
%40isocpp.org</a>.<br />

------=_Part_1377_1497285061.1546792692411--

------=_Part_1376_1209456012.1546792692411--

.
