220 18311 <CAFdMc-1QDbFoB4Xbt-6ykymbKoeeuGk_rjr3Y5BA46VKEem6rw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: "dgutson ." <danielgutson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: to_string(string)
Date: Fri, 29 May 2015 16:28:56 -0300
Lines: 145
Approved: news@gmane.org
Message-ID: <CAFdMc-1QDbFoB4Xbt-6ykymbKoeeuGk_rjr3Y5BA46VKEem6rw@mail.gmail.com>
References: <CAFdMc-1o21Y5Cr9jfqGDoNv5Ss38WfveDVFFLoXD66ciigMCaw@mail.gmail.com>
	<CAGg_6+NmanLEAUy1sz9v6NQdS202TOv8xy9WFqxTbW-0ELkC+w@mail.gmail.com>
	<CAFdMc-2w4s8YHinaUw4tQUv+VPu2EjtWt87xeOVe+THAkG2hig@mail.gmail.com>
	<CAGg_6+OmQTdd4ekiKzpdco77L4HWRvmj442TL9MrZqbdTYnRQA@mail.gmail.com>
	<CANh8DEm8Mh2xv7JbT61hkSWD_sf6trXmqVkRD+j4CaZyO0RkTQ@mail.gmail.com>
	<CAGg_6+N41wCDFKoebDfyN0aRd+28r1yUFV8pxCwPUE7QQs4kkg@mail.gmail.com>
	<CAFdMc-2jG7AcSjGh44ru+A-XB2L=GmbTo95qH0Ooj2HfnkYHSA@mail.gmail.com>
	<CAKiZDp2PDOj4u8LRCvArH-BrOc=Uovq+8evsPkQyjVmtJZngCA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1432927739 12979 80.91.229.3 (29 May 2015 19:28:59 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 29 May 2015 19:28:59 +0000 (UTC)
To: std-proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDE3NBMV6UFBB6P3UKVQKGQEL3GLBUY@isocpp.org Fri May 29 21:28:59 2015
Return-path: <std-proposals+bncBDE3NBMV6UFBB6P3UKVQKGQEL3GLBUY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f199.google.com ([209.85.214.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDE3NBMV6UFBB6P3UKVQKGQEL3GLBUY@isocpp.org>)
	id 1YyPxi-0004kR-GW
	for gclcip-std-proposals@m.gmane.org; Fri, 29 May 2015 21:28:58 +0200
Original-Received: by obcds4 with SMTP id ds4sf107156549obc.2
        for <gclcip-std-proposals@m.gmane.org>; Fri, 29 May 2015 12:28:57 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:content-type:content-transfer-encoding
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=elG1o7fub4mOok+Q8xWn6qYxbAIOfAf2ot5y66zvqUU=;
        b=HJUkMJIWxRjiYHxF4rc1yX5JWDVF98CzIRdLnnHhghvT8nNBQbGSQXPezo5UzGM2N2
         Kwe7I1IPYVBCklMk9f397ZnAsIe4Ftosr37SZclAtg89jsCKvnG+NmSdzizpoSZA1s7W
         6RdNxubLJ0nATVgf0bWava5JfK1k5kkoLd2wDMts0QGaP8o7ti3XAb8MjOEYHUkyro+Q
         8vHBXyMKYXC5nQp/DKtG1MUi3j7brRsHL9pn77CC9yD14U+Odk7R0PAJ+FT4xoZw1tj8
         DiAfUFJkp2orT8e2Tfx6xbnW7VI9jLwAZ1ys/99TmSI7NJpM4gDerQ0dZAY4sFi9KHnk
         jweQ==
X-Gm-Message-State: ALoCoQlrrEl3pLE9vmmC4uBTs2rGn2AyKLgVxTGwHKmRIHPi95ewP4MPli2u1IylLGAIMWxzFX6q
X-Received: by 10.43.151.129 with SMTP id ks1mr18828901icc.26.1432927737664;
        Fri, 29 May 2015 12:28:57 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.81.234 with SMTP id f97ls1520854qgd.17.gmail; Fri, 29 May
 2015 12:28:56 -0700 (PDT)
X-Received: by 10.236.17.198 with SMTP id j46mr10112174yhj.79.1432927736845;
        Fri, 29 May 2015 12:28:56 -0700 (PDT)
Original-Received: from mail-yh0-x235.google.com (mail-yh0-x235.google.com. [2607:f8b0:4002:c01::235])
        by mx.google.com with ESMTPS id s64si3898192yho.151.2015.05.29.12.28.56
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 29 May 2015 12:28:56 -0700 (PDT)
Received-SPF: pass (google.com: domain of danielgutson@gmail.com designates 2607:f8b0:4002:c01::235 as permitted sender) client-ip=2607:f8b0:4002:c01::235;
Original-Received: by yhan67 with SMTP id n67so562931yha.3
        for <std-proposals@isocpp.org>; Fri, 29 May 2015 12:28:56 -0700 (PDT)
X-Received: by 10.170.141.85 with SMTP id i82mr11312430ykc.39.1432927736720;
 Fri, 29 May 2015 12:28:56 -0700 (PDT)
Original-Received: by 10.129.90.213 with HTTP; Fri, 29 May 2015 12:28:56 -0700 (PDT)
In-Reply-To: <CAKiZDp2PDOj4u8LRCvArH-BrOc=Uovq+8evsPkQyjVmtJZngCA@mail.gmail.com>
X-Original-Sender: danielgutson@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of danielgutson@gmail.com designates 2607:f8b0:4002:c01::235 as
 permitted sender) smtp.mail=danielgutson@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:18311
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/18311>

On Fri, May 29, 2015 at 4:18 PM, Patrice Roy <patricer@gmail.com> wrote:
> I'm planning on being there. If there are embedded system-related proposa=
ls
> to present there (presuming I don't strongly disagree with them), I can d=
o
> it. Cheers!

Thanks Patrice. I was referring to the to_string(string) proposal (are
you interested?).
Regarding the embedded stuff, let's continue talking in the mailing
list (where we'll
post some new stuff by the weekend) and let's see.

Thanks!

   Daniel.

>
> 2015-05-29 15:02 GMT-04:00 dgutson . <danielgutson@gmail.com>:
>>
>> On Fri, May 29, 2015 at 3:22 PM, Nevin Liber <nevin@eviloverlord.com>
>> wrote:
>> > On 29 May 2015 at 13:09, 'Matt Calabrese' via ISO C++ Standard - Futur=
e
>> > Proposals <std-proposals@isocpp.org> wrote:
>> >>
>> >> On Fri, May 29, 2015 at 11:02 AM, Nevin Liber <nevin@eviloverlord.com=
>
>> >> wrote:
>> >>>
>> >>> Having everything else return by value while this returns by const
>> >>> reference is a hack which is ultimately a bad design for generic cod=
e.
>> >>> For
>> >>> instance, this now returns a dangling reference:
>> >>>
>> >>> auto& r =3D to_string("Ok");  // ok
>> >>> auto& s =3D to_string(string("Oops"));  // oops
>> >>>
>> >>> While you can fix the dangling reference problem with yet another
>> >>> overload (string to_string(string const&&)), you still have to
>> >>> understand
>> >>> the lifetime extension rules for references to use it efficiently in
>> >>> generic
>> >>> code.
>> >>
>> >>
>> >> Agreed.
>> >>
>> >> I do think an overload for strings is good, though, even though it
>> >> implies
>> >> a copy or at least a move.
>> >
>> >
>> > Of course, the purpose of to_string is to convert a numeric value to a
>> > string, and adding a string overload doesn't meet that purpose.
>> >
>> > That being said, I probably wouldn't vote against such a thing, but I
>> > don't
>> > plan on championing it either (especially in Lenexa, as that was a few
>> > weeks
>> > ago :-)).
>>
>> :) my brain is burnt.
>>
>> Anyway, since I'm not sure if I will attend Kona either (until we come u=
p
>> with a
>> full battery of proposals related to the embedded domain), anyone
>> interested?
>>
>> > --
>> >  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/.
>>
>>
>>
>> --
>> Who=E2=80=99s got the sweetest disposition?
>> One guess, that=E2=80=99s who?
>> Who=E2=80=99d never, ever start an argument?
>> Who never shows a bit of temperament?
>> Who's never wrong but always right?
>> Who'd never dream of starting a fight?
>> Who get stuck with all the bad luck?
>>
>> --
>>
>> ---
>> You received this message because you are subscribed to the Google Group=
s
>> "ISO C++ Standard - Future Proposals" group.
>> To unsubscribe from this group and stop receiving emails from it, send a=
n
>> 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/.
>
>
> --
>
> ---
> 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/.



--=20
Who=E2=80=99s got the sweetest disposition?
One guess, that=E2=80=99s who?
Who=E2=80=99d never, ever start an argument?
Who never shows a bit of temperament?
Who's never wrong but always right?
Who'd never dream of starting a fight?
Who get stuck with all the bad luck?

--=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/.

.
