220 7751 <2CC6D6A0-D78D-4FE7-BBB0-E3CC951E87E4@hsr.ch> article
Path: news.gmane.org!not-for-mail
From: Peter Sommerlad <peter.sommerlad@hsr.ch>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: 2 Type-Traits Proposals: Standard Transformations
 and More Array Transformations
Date: Thu, 14 Nov 2013 13:11:43 +0100
Lines: 67
Approved: news@gmane.org
Message-ID: <2CC6D6A0-D78D-4FE7-BBB0-E3CC951E87E4@hsr.ch>
References: <49883229-58c3-4c26-bbc8-492ebd7e93dd@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1384431107 16154 80.91.229.3 (14 Nov 2013 12:11:47 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 14 Nov 2013 12:11:47 +0000 (UTC)
To: <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBD3OHQEN4AJBBAX4SKKAKGQELEGJZEQ@isocpp.org Thu Nov 14 13:11:52 2013
Return-path: <std-proposals+bncBD3OHQEN4AJBBAX4SKKAKGQELEGJZEQ@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+bncBD3OHQEN4AJBBAX4SKKAKGQELEGJZEQ@isocpp.org>)
	id 1Vgvlz-0001bw-21
	for gclcip-std-proposals@m.gmane.org; Thu, 14 Nov 2013 13:11:47 +0100
Original-Received: by mail-ee0-f69.google.com with SMTP id e52sf2066105eek.4
        for <gclcip-std-proposals@m.gmane.org>; Thu, 14 Nov 2013 04:11:46 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:subject:from:in-reply-to:date
         :message-id:references:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type:content-transfer-encoding;
        bh=OLmHM1S450zX4BUM2bPWHTV7fxU62//0UHOfECjMvJw=;
        b=HE47D6AU4794UeJjQUYe4iGDJwqfnB42LC98Fpgj1gOGCxEP91ggnXypBoZ6ePzaL5
         pFv4W2RWycW1KAivNsZI2HBl+awkQSx+bjQACrxfis/kXslD5FBebMYEhP7eZ+JCuv0n
         o7bD2mtW3cX8vL6I9g/k9RufoEK+umTJgMHv77fhpgtOkaWrnZd/mtlDwV9MwRbvax0Q
         mcCpjTCQT+mfi8xqgXG+2uDfYuKWjPaSt6yZCDUNK/FAa7Qy5TCbrp3pvvKTtuokatTD
         UbXC7nzRybcn4eDsajezJ93CkKcWDfFpNN9Ko6ES2FjHdQFUmXRi5TWqxoLOB+y2XS7r
         8pHw==
X-Gm-Message-State: ALoCoQn9LE7fI70wtX0GrNKdGJVSqvIV8LrhCGf0X5cMivPNrS81ye9lul6EdMtZ4w1TGzf4TZXu
X-Received: by 10.180.37.68 with SMTP id w4mr819898wij.3.1384431106593;
        Thu, 14 Nov 2013 04:11:46 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.89.243 with SMTP id br19ls85296wib.13.canary; Thu, 14 Nov
 2013 04:11:45 -0800 (PST)
X-Received: by 10.180.24.6 with SMTP id q6mr2279205wif.0.1384431105226;
        Thu, 14 Nov 2013 04:11:45 -0800 (PST)
Original-Received: from mx1.hsr.ch (mx1.hsr.ch. [2001:620:130:a036::50])
        by mx.google.com with ESMTP id g9si27716135eet.34.2013.11.14.04.11.45
        for <std-proposals@isocpp.org>;
        Thu, 14 Nov 2013 04:11:45 -0800 (PST)
Received-SPF: pass (google.com: best guess record for domain of psommerl@hsr.ch designates 2001:620:130:a036::50 as permitted sender) client-ip=2001:620:130:a036::50;
Original-Received: from localhost (localhost [127.0.0.1])
	by mx1.hsr.ch (Postfix) with ESMTP id E6478A96E
	for <std-proposals@isocpp.org>; Thu, 14 Nov 2013 13:11:44 +0100 (CET)
Original-Received: from mx1.hsr.ch ([127.0.0.1])
	by localhost (mx1.hsr.ch [127.0.0.1]) (amavisd-new, port 10024)
	with LMTP id YBs4XSYOkGeB for <std-proposals@isocpp.org>;
	Thu, 14 Nov 2013 13:11:44 +0100 (CET)
Original-Received: from webmail.hsr.ch (sid00200.hsr.ch [152.96.21.200])
	by mx1.hsr.ch (Postfix) with ESMTP id 89950774
	for <std-proposals@isocpp.org>; Thu, 14 Nov 2013 13:11:44 +0100 (CET)
Original-Received: from [192.168.1.11] (152.96.21.55) by smtp.hsr.ch (152.96.21.200)
 with Microsoft SMTP Server (TLS) id 14.3.158.1; Thu, 14 Nov 2013 13:11:44
 +0100
In-Reply-To: <49883229-58c3-4c26-bbc8-492ebd7e93dd@isocpp.org>
X-Mailer: Apple Mail (2.1510)
X-Originating-IP: [152.96.21.55]
X-Original-Sender: peter.sommerlad@hsr.ch
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 best guess record for domain of psommerl@hsr.ch designates
 2001:620:130:a036::50 as permitted sender) smtp.mail=psommerl@hsr.ch
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>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:7751
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7751>


On 14.11.2013, at 12:52, Daryle Walker <darylew@gmail.com>
 wrote:
>=20
> So far, I have two new transformation type-traits, a change to an existin=
g one (adding the built-in character types to std::underlying_type), plus a=
 test type-trait. If you know of other similar transformations in the Stand=
ard, let me know so I can add them.
wrt
> Should bool be added? (There is no mention if it has to shadow another in=
teger type.)
I believe bool won't have an underlying type and should not be added.

wrt char
I believe it might be nice to determine if char is signed or unsigned. but =
couldn't that already be achieved by is_same_t<char, unsigned char>() ?

>=20
> The second proposal does more array extent changing. One type-traits remo=
ves a user-selectable number of extents from an array type. (The current St=
andard has type-traits that do either one or all extents.) The other type-t=
rait adds extents to a given type.

Why can't the example use static_assert instead of assert?

>=20
> Daryle W.
>=20
>=20
> --=20
> =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=
 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-propo=
sals/.

--=20
Prof. Peter Sommerlad

Institut f=FCr Software: Bessere Software - Einfach, Schneller!
HSR Hochschule f=FCr Technik Rapperswil
Oberseestr 10, Postfach 1475, CH-8640 Rapperswil

http://ifs.hsr.ch http://cute-test.com http://linticator.com http://includa=
tor.com
tel:+41 55 222 49 84 =3D=3D mobile:+41 79 432 23 32
fax:+41 55 222 46 29 =3D=3D mailto:peter.sommerlad@hsr.ch





--=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/.

.
