220 41314 <8913f62c-8818-46a4-8426-87660d24d989@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: huili80@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: allow enums in std::integer_sequence<class T, T...>
Date: Sun, 6 Jan 2019 05:55:07 -0800 (PST)
Lines: 48
Approved: news@gmane.org
Message-ID: <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_1354_1716587384.1546782907693"
X-Trace: blaine.gmane.org 1546782785 15982 195.159.176.226 (6 Jan 2019 13:53:05 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sun, 6 Jan 2019 13:53:05 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC4M5FGS6MJBBPERZDQQKGQE5E2EU5I@isocpp.org Sun Jan 06 14:53:01 2019
Return-path: <std-proposals+bncBC4M5FGS6MJBBPERZDQQKGQE5E2EU5I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw1-f69.google.com ([209.85.161.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC4M5FGS6MJBBPERZDQQKGQE5E2EU5I@isocpp.org>)
	id 1gg8rL-0003zW-QP
	for gclcip-std-proposals@m.gmane.org; Sun, 06 Jan 2019 14:52:59 +0100
Original-Received: by mail-yw1-f69.google.com with SMTP id d72sf28449746ywe.9
        for <gclcip-std-proposals@m.gmane.org>; Sun, 06 Jan 2019 05:55:10 -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:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=29+3wVQcjyKhp1u0QwOzq68n90MIgpRTOnUyIsRXviY=;
        b=zSVg0Tgzfp4Uai4B0i4+HzEfcPZ63mc4JwLsco38U7sYZqePmqAghNyCw2tkjNyeFc
         9wHqPnzkJcTAGBMXlBgqdxdMJt+jLZfFn2atQYiCrLdeCqeAAAjEUDSHjtnICxDjHvd5
         Hm5CzcGhETY1w456myAaTkNZEK+Y4oK4H3Tyb/EG1GPXiG4hnzD4Fc+1kNBlkZsHydT1
         3C+2etcIPCc7x8uowwK7UHsf+0i7R3jjyI4tuHW8SV0jr4DkSeIG5rdrd30b+/z9b8sr
         q8BUuL0GyOstoKiDfSZb9gvIT31hh155ZC7N24nR/Rt4xfDdwyWOBJeEv/Jr1hWy6mA2
         O7uQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:subject:mime-version:x-original-sender
         :reply-to:precedence:mailing-list:list-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=29+3wVQcjyKhp1u0QwOzq68n90MIgpRTOnUyIsRXviY=;
        b=V4Y7tjDbXCwUnSyBewyjSgrgCofIjDNuycOAQhwwRcVIyE38zmYiVzQMoD181Y4GyQ
         ktozWG9i2iydwLTun/F80kUdeMD5WqpjojT+o5iZJnuR81Zr6MfsecfjvLVRM26N+8le
         5SKOEZD+lNL5Iq8AxtzUecxdgcoshkjLwiWUnzPPw7o1jmzgK9VOs9KNby/eBiduHfp+
         NfSWNC+Jr3SRixxLFoB+2m4Qht1PC8UC0Eln2CYkcDeNcJMeS5V1zc61HdTsFOm79IYQ
         0j9+tT9WRDXOw9lWZ8WysYiuEyS4jUu/O/F2imzjA7CCxtQPMLO1xJwSmkyrzwK9LZq3
         /npQ==
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: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=29+3wVQcjyKhp1u0QwOzq68n90MIgpRTOnUyIsRXviY=;
        b=hW9w+YSCfE4yAP+f4yEBUrtUyXQPXVP5lln+pJX6EvXBXNE4IV5ofic4oAUtrASsoF
         OeU8+sVN8j8HxmrneDUrUbrJUuNiyTRPGefR0C1x3DNk54MDa5w2LA9+EPTr2+3z8Wjx
         l+WLgMUm30Ntm+7a5YG6jy1/dJ5zN2j5GbOiHUoxqXQALgUddYehkiyXzsfPbzDJGHth
         Z21K0s1vPgvmdUbowpe2UvKkwwarIgLM+rsH2ekKyYlFyrA0AkuRx0LDmKgRPzZfUX+W
         9STxif2dqkJAu7bCSH6UvmuNvyf9vVlGnagRoQ+caksGVJoL50OTbbOojzKiXKAffZ9L
         MbkQ==
X-Gm-Message-State: AA+aEWZgeuWv2dYqTRUpaZ5aAmVnXLQOFAq7Bkw603Qe1RXPnVdR1v58
	oxy83ilIKhWIFw80RfvqixNxRQ==
X-Google-Smtp-Source: AFSGD/Uv6mrg2hSHzLsDqrnqQGBveglcvzc4H2KL8kw3ipMPhNNmrj2CfJ1cWGfagZVhixYh4tTrPQ==
X-Received: by 2002:a81:7105:: with SMTP id m5mr33471678ywc.26.1546782910065;
        Sun, 06 Jan 2019 05:55:10 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a81:3515:: with SMTP id c21ls22958876ywa.8.gmail; Sun, 06
 Jan 2019 05:55:08 -0800 (PST)
X-Received: by 2002:a81:528b:: with SMTP id g133mr730410ywb.1.1546782908470;
        Sun, 06 Jan 2019 05:55:08 -0800 (PST)
X-Original-Sender: huili80@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:41314
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/41314>

------=_Part_1354_1716587384.1546782907693
Content-Type: multipart/alternative; 
	boundary="----=_Part_1355_1006439652.1546782907693"

------=_Part_1355_1006439652.1546782907693
Content-Type: text/plain; charset="UTF-8"

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.

-- 
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/8913f62c-8818-46a4-8426-87660d24d989%40isocpp.org.

------=_Part_1355_1006439652.1546782907693
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">According to the standard, in std::integer_sequence&lt;cla=
ss T,T...&gt;, T must be an integer type. However, it would be very useful =
to allow enums too.<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; allo=
ws T to be an enum type.</div><div><br></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/8913f62c-8818-46a4-8426-87660d24d989%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/8913f62c-8818-46a4-8426-87660d24d989=
%40isocpp.org</a>.<br />

------=_Part_1355_1006439652.1546782907693--

------=_Part_1354_1716587384.1546782907693--

.
