220 8948 <CAGg_6+P4Tbp01WfPjsZOqUSCDaBwWAE8CH6U0SmG0vYy=wtVrA@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: Thu, 30 Jan 2014 10:44:54 -0600
Lines: 76
Approved: news@gmane.org
Message-ID: <CAGg_6+P4Tbp01WfPjsZOqUSCDaBwWAE8CH6U0SmG0vYy=wtVrA@mail.gmail.com>
References: <097fb6c8-56f9-433e-a2f0-8c0f69609bf0@isocpp.org>
 <lc64t2$n0m$1@ger.gmane.org> <34c26aca-59cf-4254-9ab1-31a403d4a3db@isocpp.org>
 <lcbben$mum$1@ger.gmane.org> <52E95CDE.40007@knejp.de> <52E9FAE5.9090906@wanadoo.fr>
 <52EA1995.7020803@knejp.de> <cbdeeaa2-958a-40dc-9c92-b5d5855b3f76@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11c3841a44eadd04f132c9c4
X-Trace: ger.gmane.org 1391100330 20541 80.91.229.3 (30 Jan 2014 16:45:30 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 30 Jan 2014 16:45:30 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCE35H5S6IDBBL4DVKLQKGQEIYTU4GQ@isocpp.org Thu Jan 30 17:45:39 2014
Return-path: <std-proposals+bncBCE35H5S6IDBBL4DVKLQKGQEIYTU4GQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-la0-f71.google.com ([209.85.215.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCE35H5S6IDBBL4DVKLQKGQEIYTU4GQ@isocpp.org>)
	id 1W8ukC-0005mg-HL
	for gclcip-std-proposals@m.gmane.org; Thu, 30 Jan 2014 17:45:36 +0100
Original-Received: by mail-la0-f71.google.com with SMTP id c6sf6964329lan.2
        for <gclcip-std-proposals@m.gmane.org>; Thu, 30 Jan 2014 08:45:36 -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=7iZnmRisSLlmv6K1PpVA9obnzwDSMYOpoRmihPo9cMA=;
        b=MKkB4vGjjS8+vJ7DRPnPuX6UEBRbrhIpx5lsm/hB8STt0N0Jy/zi2ZekPNcunspL54
         nR8AYTOK4WrWg435WSVMm3bdPSPBbEklMSdwrhUdfS9dq/4gSJIxiRZJIqp2SKNG6n9w
         11/ssc1U/pDC+3nOYHfTsHGeX/13Yh634uEVof0rp0W1VnLmzjLLbrcbQLNPdbsrUpUK
         oY15tKis9LagU3U58qArHTcxQFCnBkMXyc7rbP1FA/qzTOwUXw0NP39T362ZJcdSjob5
         oyfVhdNTwDUWrbq/mvQfhkt+i3h2hs3fTzp6vMDy11gr0FWCLvLbuwbkXqgJJ46AUDcn
         DCzA==
X-Gm-Message-State: ALoCoQmt8jkR/s0LdnX9Auwj71SF8OtxHiAiNaOpQe5vRnwbh/H1394Mc5tvD+wY2uqeEl//39J4
X-Received: by 10.204.179.68 with SMTP id bp4mr3749272bkb.7.1391100336173;
        Thu, 30 Jan 2014 08:45:36 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.90.233 with SMTP id bz9ls1547853wib.51.canary; Thu, 30 Jan
 2014 08:45:34 -0800 (PST)
X-Received: by 10.194.189.40 with SMTP id gf8mr5169905wjc.14.1391100334603;
        Thu, 30 Jan 2014 08:45:34 -0800 (PST)
Original-Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [2a00:1450:400c:c00::22f])
        by mx.google.com with ESMTPS id r1si3351050wjy.130.2014.01.30.08.45.34
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Thu, 30 Jan 2014 08:45:34 -0800 (PST)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 2a00:1450:400c:c00::22f as permitted sender) client-ip=2a00:1450:400c:c00::22f;
Original-Received: by mail-wg0-f47.google.com with SMTP id m15so6825192wgh.14
        for <std-proposals@isocpp.org>; Thu, 30 Jan 2014 08:45:34 -0800 (PST)
X-Received: by 10.180.188.197 with SMTP id gc5mr10217330wic.30.1391100334236;
 Thu, 30 Jan 2014 08:45:34 -0800 (PST)
Original-Sender: nliber@gmail.com
Original-Received: by 10.194.121.163 with HTTP; Thu, 30 Jan 2014 08:44:54 -0800 (PST)
In-Reply-To: <cbdeeaa2-958a-40dc-9c92-b5d5855b3f76@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::22f 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:8948
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8948>

--001a11c3841a44eadd04f132c9c4
Content-Type: text/plain; charset=ISO-8859-1

On 30 January 2014 06:49, Bengt Gustafsson <bengt.gustafsson@beamways.com>wrote:

>
>
> The Boost::expected template suggested by Miro comes close to what I want,
> but does not make sure that the error code was checked in its dtor, which I
> think was the main feature of my proposed error_return class.
>

You do know that it is extremely unlikely for a class which throws from its
destructor to be approved by the committee anytime soon, right?  First you
would need to address the issues brought up in the article and discussion
at <http://cpp-next.com/archive/2012/08/evil-or-just-misunderstood/>.

Besides, it seems to me it ought to assert, not throw, as I can't imagine
any circumstance where this isn't a programming bug.
-- 
 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/.

--001a11c3841a44eadd04f132c9c4
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On 30 January 2014 06:49, 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:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><br><div=
><br></div><div>The Boost::expected template suggested by Miro comes close =
to what I want, but does not make sure that the error code was checked in i=
ts dtor, which I think was the main feature of my proposed error_return cla=
ss. </div>

</div></blockquote><div><br></div><div>You do know that it is extremely unl=
ikely for a class which throws from its destructor to be approved by the co=
mmittee anytime soon, right?=A0 First you would need to address the issues =
brought up in the article and discussion at &lt;<a href=3D"http://cpp-next.=
com/archive/2012/08/evil-or-just-misunderstood/">http://cpp-next.com/archiv=
e/2012/08/evil-or-just-misunderstood/</a>&gt;.<br>

<br></div><div>Besides, it seems to me it ought to assert, not throw, as I =
can&#39;t imagine any circumstance where this isn&#39;t a programming bug.<=
br></div></div>-- <br>=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 />

--001a11c3841a44eadd04f132c9c4--

.
