220 10611 <a08f1a82-76be-442c-94c2-860ee714c9ed@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Jim Porter <jvp4846@g.rit.edu>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Overloading std::to_string() with std::string and std::wstring.
Date: Mon, 12 May 2014 15:45:07 -0700 (PDT)
Lines: 60
Approved: news@gmane.org
Message-ID: <a08f1a82-76be-442c-94c2-860ee714c9ed@isocpp.org>
References: <6d7c0fe0-e061-4d94-8506-d318609ffad3@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_2696_13902833.1399934707488"
X-Trace: ger.gmane.org 1399934725 4873 80.91.229.3 (12 May 2014 22:45:25 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 12 May 2014 22:45:25 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDYZZG6PQYFRB5E5YWNQKGQEZKOTZ7A@isocpp.org Tue May 13 00:45:18 2014
Return-path: <std-proposals+bncBDYZZG6PQYFRB5E5YWNQKGQEZKOTZ7A@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yk0-f197.google.com ([209.85.160.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDYZZG6PQYFRB5E5YWNQKGQEZKOTZ7A@isocpp.org>)
	id 1Wjyy7-0006w4-02
	for gclcip-std-proposals@m.gmane.org; Tue, 13 May 2014 00:45:11 +0200
Original-Received: by mail-yk0-f197.google.com with SMTP id 19sf17586122ykq.4
        for <gclcip-std-proposals@m.gmane.org>; Mon, 12 May 2014 15:45:09 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=jUSg+XY2OcabLg4o0EShGHrEAA5683tyYmhUpd1mxnI=;
        b=Ckup54pVA/U+jxsVRwmu+6/Y8JyyX+IzlWghM+kSUIVMSVotYED0uYFVQmqP/xFVLA
         Ri735Iye5KjLI7d9TnaQFgua5SX5+GO/a7vqQQLJkUPhZmSTvJguaGu3vZu2Lj0YOV6W
         IMV+FJ/p3CC5xQp1gGJ7rCDYp3ngW4XWtKp+OY345a8YDGWU3m659eWzoqW/7W0RF2hN
         Nkt+sUIZZFZrst3mo0ZD6a9yOT+4HS0AONGrjfqIIHpj/pNwnFVpzQT6XZ1Zs9563+ye
         2//VdgKNloqzibgk/i1NGDTippCizMjWf42AB7+cmyf2p5n7zdrY5FNLsFCob3ZQ0sfl
         K6Xw==
X-Gm-Message-State: ALoCoQn37sjRn/3t1Vpdr5/MpN4f5mIZAQDu6Xg2R8j55E1OQqyuE/2DhH9Jtsh6MPJRxu6H6uwu
X-Received: by 10.236.77.194 with SMTP id d42mr13129481yhe.21.1399934709663;
        Mon, 12 May 2014 15:45:09 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.117.193 with SMTP id kg1ls553463obb.63.gmail; Mon, 12 May
 2014 15:45:08 -0700 (PDT)
X-Received: by 10.182.22.138 with SMTP id d10mr158969obf.7.1399934708240;
        Mon, 12 May 2014 15:45:08 -0700 (PDT)
In-Reply-To: <6d7c0fe0-e061-4d94-8506-d318609ffad3@isocpp.org>
X-Original-Sender: jvp4846@g.rit.edu
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:10611
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/10611>

------=_Part_2696_13902833.1399934707488
Content-Type: text/plain; charset=UTF-8

On Monday, May 12, 2014 1:57:18 AM UTC-5, Chris Ridgway wrote:
>
> You may be wondering why would anyone want to convert a string into a 
> string? Story short, generic type handling.
>

I've done similar things with homegrown stringification functions, and I 
agree that this is pretty useful.

I'm a bit less convinced of the use of converting std::wstring to 
std::string via std::to_string(), but that's more because I think wstring 
is a bit of a mess. Fixing that would probably be a long and difficult 
process, though.

- Jim

-- 

--- 
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/.

------=_Part_2696_13902833.1399934707488
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Monday, May 12, 2014 1:57:18 AM UTC-5, Chris Ridgway wr=
ote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex=
;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">You may b=
e wondering why would anyone want to convert a string into a string? Story =
short, generic type handling.</div></blockquote><div><br>I've done similar =
things with homegrown stringification functions, and I agree that this is p=
retty useful.<br><br>I'm a bit less convinced of the use of converting std:=
:wstring to std::string via std::to_string(), but that's more because I thi=
nk wstring is a bit of a mess. Fixing that would probably be a long and dif=
ficult process, though.<br><br>- Jim<br></div></div>

<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 />

------=_Part_2696_13902833.1399934707488--

.
