220 8922 <CAGg_6+OXEVUFA0La5OQZ3bBmkpETAWynrf8JCXex88qecxG9qw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Nevin Liber <nevin@eviloverlord.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: String to T conversions - getting it right
 this time
Date: Wed, 29 Jan 2014 10:23:59 -0600
Lines: 68
Approved: news@gmane.org
Message-ID: <CAGg_6+OXEVUFA0La5OQZ3bBmkpETAWynrf8JCXex88qecxG9qw@mail.gmail.com>
References: <097fb6c8-56f9-433e-a2f0-8c0f69609bf0@isocpp.org>
 <lc64t2$n0m$1@ger.gmane.org> <34c26aca-59cf-4254-9ab1-31a403d4a3db@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11c288a2a1ab9a04f11e6067
X-Trace: ger.gmane.org 1391012675 5987 80.91.229.3 (29 Jan 2014 16:24:35 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 29 Jan 2014 16:24:35 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCE35H5S6IDBBSGWUSLQKGQEOUJK2AI@isocpp.org Wed Jan 29 17:24:42 2014
Return-path: <std-proposals+bncBCE35H5S6IDBBSGWUSLQKGQEOUJK2AI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-bk0-f72.google.com ([209.85.214.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCE35H5S6IDBBSGWUSLQKGQEOUJK2AI@isocpp.org>)
	id 1W8XwP-0001vM-Nl
	for gclcip-std-proposals@m.gmane.org; Wed, 29 Jan 2014 17:24:41 +0100
Original-Received: by mail-bk0-f72.google.com with SMTP id mx11sf4921484bkb.3
        for <gclcip-std-proposals@m.gmane.org>; Wed, 29 Jan 2014 08:24:41 -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:sender:in-reply-to:references:from
         :date:message-id:subject: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;
        bh=fmhz9xGsbXH2cJ4fZmcFDc5pMh+bBDQJIQgFW+ykFi4=;
        b=AZVFKv7+HcxaUdMjM4AVMCJiFSP3G9wjWv95YyHpho1fUAlFyLpSzKzQu9cpnncAmR
         +jr7vegi0Lh0bOUXlP0OFlJqlqC9EFky8C0E3EcowRyPHiZdXVESb2Yibs7DU2/m83zk
         XdM++y3czZhDQxXbjAiQbWBOrlnfo9xtakOTvKQGoYOwLKjpycgP/PvNQOitX5Iea4ZT
         iYgDwM206ElW5Fx0OroWSrFRdcLWYI1oQF5FlWeeKfpVMuylWoG8VtkfGaQZuZyFNf/f
         U7nXBHoLg1jkdoXcS6KqBR5VridDa06gVqASiMDeB0UOBL5CNRJlYu0cRtIzAlKxqLYl
         gNCw==
X-Gm-Message-State: ALoCoQlqGpoe519pbBN8enSmg6vhu29HsLrm06dH3DrFhKKiMfkvhNrD47g+/gNHkTDe+BXgbLxq
X-Received: by 10.180.80.70 with SMTP id p6mr5016551wix.4.1391012681364;
        Wed, 29 Jan 2014 08:24:41 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.14.194 with SMTP id r2ls110050wic.1.gmail; Wed, 29 Jan
 2014 08:24:39 -0800 (PST)
X-Received: by 10.180.98.42 with SMTP id ef10mr20027525wib.49.1391012679837;
        Wed, 29 Jan 2014 08:24:39 -0800 (PST)
Original-Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [2a00:1450:400c:c00::232])
        by mx.google.com with ESMTPS id wk5si1463375wjc.57.2014.01.29.08.24.39
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 29 Jan 2014 08:24:39 -0800 (PST)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 2a00:1450:400c:c00::232 as permitted sender) client-ip=2a00:1450:400c:c00::232;
Original-Received: by mail-wg0-f50.google.com with SMTP id l18so4047714wgh.5
        for <std-proposals@isocpp.org>; Wed, 29 Jan 2014 08:24:39 -0800 (PST)
X-Received: by 10.194.219.132 with SMTP id po4mr5659105wjc.7.1391012679361;
 Wed, 29 Jan 2014 08:24:39 -0800 (PST)
Original-Sender: nliber@gmail.com
Original-Received: by 10.194.121.163 with HTTP; Wed, 29 Jan 2014 08:23:59 -0800 (PST)
In-Reply-To: <34c26aca-59cf-4254-9ab1-31a403d4a3db@isocpp.org>
X-Original-Sender: nevin@eviloverlord.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of nliber@gmail.com designates 2a00:1450:400c:c00::232 as permitted
 sender) smtp.mail=nliber@gmail.com;       dkim=pass header.i=@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: <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:8922
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8922>

--001a11c288a2a1ab9a04f11e6067
Content-Type: text/plain; charset=ISO-8859-1

On 29 January 2014 10:18, Bengt Gustafsson <bengt.gustafsson@beamways.com>wrote:

> Regarding default values produced when the conversion fails this is
> another argument for this style:
>
> <error return type> from_string(T& dest, string_view& src)
>
> Now the standard can specify that the function shall not touch dest if
> conversion fails.
>

How exactly do you guarantee that if an exception is thrown while dest is
being mutated?
-- 
 Nevin ":-)" Liber  <mailto:nevin@eviloverlord.com>  (847) 691-1404

-- 

--- 
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-proposals/.

--001a11c288a2a1ab9a04f11e6067
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On 29 January 2014 10:18, Bengt Gustafsson <span dir=3D"lt=
r">&lt;<a href=3D"mailto:bengt.gustafsson@beamways.com" target=3D"_blank">b=
engt.gustafsson@beamways.com</a>&gt;</span> wrote:<br><div class=3D"gmail_e=
xtra"><div class=3D"gmail_quote">

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr">Regarding default values pr=
oduced when the conversion fails this is another argument for this style:<d=
iv>

<br></div><div>&lt;error return type&gt; from_string(T&amp; dest, string_vi=
ew&amp; src)</div><div><br></div><div>Now the standard can specify that the=
 function shall not touch dest if conversion fails.</div></div></blockquote=
>

<div><br></div><div>How exactly do you guarantee that if an exception is th=
rown while dest is being mutated?</div><div>--=A0<br></div></div>=A0Nevin &=
quot;:-)&quot; Liber=A0 &lt;mailto:<a href=3D"mailto:nevin@eviloverlord.com=
" target=3D"_blank">nevin@eviloverlord.com</a>&gt;=A0 (847) 691-1404
</div></div>

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<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 />

--001a11c288a2a1ab9a04f11e6067--

.
