220 12251 <519C2768-CE67-4C35-A4CA-9D71B6DF9B1F@gmail.com> article
Path: news.gmane.org!not-for-mail
From: David Krauss <potswa@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: std::num_get/put overloads
Date: Wed, 13 Aug 2014 14:08:25 +0800
Lines: 73
Approved: news@gmane.org
Message-ID: <519C2768-CE67-4C35-A4CA-9D71B6DF9B1F@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Content-Type: multipart/alternative; boundary="Apple-Mail=_497C877C-8ED0-470D-9D8F-6E3453C2AA58"
X-Trace: ger.gmane.org 1407910208 1143 80.91.229.3 (13 Aug 2014 06:10:08 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 13 Aug 2014 06:10:08 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCW25A7E3QCRBNUCVSPQKGQEIMY4UAA@isocpp.org Wed Aug 13 08:10:01 2014
Return-path: <std-proposals+bncBCW25A7E3QCRBNUCVSPQKGQEIMY4UAA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vc0-f197.google.com ([209.85.220.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCW25A7E3QCRBNUCVSPQKGQEIMY4UAA@isocpp.org>)
	id 1XHRl1-00054L-Qm
	for gclcip-std-proposals@m.gmane.org; Wed, 13 Aug 2014 08:10:00 +0200
Original-Received: by mail-vc0-f197.google.com with SMTP id ij19sf31349134vcb.0
        for <gclcip-std-proposals@m.gmane.org>; Tue, 12 Aug 2014 23:09:59 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:subject:message-id:date:to:mime-version
         :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;
        bh=vReT5pzuZWBAnQ1OlJ/AlF2ybs+Zv8+C1RI+5CXRJwA=;
        b=S9Ud6gui4cMLXI7/viu8E4QXF82cjtpFbgoVks/yl/DMwnyr59QyktKCIuMtrIWeD7
         HKGmcvF5w6AAW9lOaU0A/QLzoJLlTo8yZMGcuuuAb2jx/y37lHDPiiYuSemZk1ihfxjA
         W0C+6t6UtW9nGtzeVs95O95pJSoef0R1qUu+B+qBAgrRIDASeyUubSK/lhFDTM0hhsuz
         9rcz1/Ags32snVDsUlFLouV1r2CylSKvobwsIJrvOdN1V2GwCyqF5jL5gLukUr1lRaa6
         vdUZW1iss/xgIoAiMimzE4Fdqw015FOGqEl3gKx1DQ1edZi9xqitpHBc8mOfVvjAcGO0
         4lJg==
X-Gm-Message-State: ALoCoQnu/E7Uq+2CV6duLqaHRFjJ+uvihqfMLbJYRzpLnn05diZOk1lwMF9lECLLwEIY6QZpIgct
X-Received: by 10.236.2.162 with SMTP id 22mr901122yhf.41.1407910199057;
        Tue, 12 Aug 2014 23:09:59 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.43.135 with SMTP id w7ls3120515igl.21.canary; Tue, 12 Aug
 2014 23:09:58 -0700 (PDT)
X-Received: by 10.70.118.225 with SMTP id kp1mr2284319pdb.74.1407910198165;
        Tue, 12 Aug 2014 23:09:58 -0700 (PDT)
Original-Received: from mail-pa0-x22f.google.com (mail-pa0-x22f.google.com [2607:f8b0:400e:c03::22f])
        by mx.google.com with ESMTPS id gr3si713908pbb.170.2014.08.12.23.09.58
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Tue, 12 Aug 2014 23:09:58 -0700 (PDT)
Received-SPF: pass (google.com: domain of potswa@gmail.com designates 2607:f8b0:400e:c03::22f as permitted sender) client-ip=2607:f8b0:400e:c03::22f;
Original-Received: by mail-pa0-f47.google.com with SMTP id kx10so14366108pab.34
        for <std-proposals@isocpp.org>; Tue, 12 Aug 2014 23:09:58 -0700 (PDT)
X-Received: by 10.66.155.167 with SMTP id vx7mr690901pab.141.1407910197921;
        Tue, 12 Aug 2014 23:09:57 -0700 (PDT)
Original-Received: from [172.20.10.2] ([121.54.54.150])
        by mx.google.com with ESMTPSA id pl10sm862063pbb.56.2014.08.12.23.09.38
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Tue, 12 Aug 2014 23:09:57 -0700 (PDT)
X-Mailer: Apple Mail (2.1878.6)
X-Original-Sender: potswa@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of potswa@gmail.com designates 2607:f8b0:400e:c03::22f as permitted
 sender) smtp.mail=potswa@gmail.com;       dkim=pass header.i=@gmail.com;
       dmarc=pass (p=NONE dis=NONE) header.from=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: <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: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:12251
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/12251>

--Apple-Mail=_497C877C-8ED0-470D-9D8F-6E3453C2AA58
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1

<locale>, and therefore <iostream>, specifically provides for numeric I/O o=
ver the set of standard, non-character integer types. __int128_t support or=
 std::int8_t would be a non-conforming extension. This is too strict. All i=
nteger types should be supported.

The functions which implement the parsing are virtual, but not pure virtual=
, so there's no risk of making user-derived classes abstract. Implicit inte=
ger conversions don't work due to overload ambiguity, so no user code alrea=
dy passes arguments not covered by the existing overloads (e.g., char).

It's true that user-derived classes would not be able to portably provide i=
dentical coverage, and C locale behavior would surprisingly result from pas=
sing an unsupported argument, but locale facet derivation is quite an unpop=
ular paradigm.

Is there anything else that could break?

--=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/.

--Apple-Mail=_497C877C-8ED0-470D-9D8F-6E3453C2AA58
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=ISO-8859-1

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset=
=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-=
mode: space; -webkit-line-break: after-white-space;"><font face=3D"Courier"=
>&lt;locale&gt;</font>, and therefore <font face=3D"Courier">&lt;iostream&g=
t;</font>, specifically provides for numeric I/O over the set of standard, =
non-character integer types. <font face=3D"Courier">__int128_t</font> suppo=
rt or <font face=3D"Courier">std::int8_t</font> would be a non-conforming e=
xtension. This is too strict. All integer types should be supported.<div><b=
r></div><div>The functions which implement the parsing are virtual, but not=
 pure virtual, so there&rsquo;s no risk of making user-derived classes abst=
ract. Implicit integer conversions don&rsquo;t work due to overload ambigui=
ty, so no user code already passes arguments not covered by the existing ov=
erloads (e.g., <font face=3D"Courier">char</font>).</div><div><br></div><di=
v>It&rsquo;s true that user-derived classes would not be able to portably p=
rovide identical coverage, and C locale behavior would surprisingly result =
from passing an unsupported argument, but locale facet derivation is quite =
an unpopular paradigm.</div><div><br></div><div>Is there anything else that=
 could break?</div><div><br></div></body></html>

<p></p>

-- <br />
<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 <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 />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--Apple-Mail=_497C877C-8ED0-470D-9D8F-6E3453C2AA58--

.
