220 21149 <550B8D36-DAA7-4855-BF68-D94CF7FBAEFD@gmail.com> article
Path: news.gmane.org!not-for-mail
From: David Krauss <potswa@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: P0117: Generic to_string/to_wstring functions
Date: Fri, 2 Oct 2015 15:37:49 +0800
Lines: 110
Approved: news@gmane.org
Message-ID: <550B8D36-DAA7-4855-BF68-D94CF7FBAEFD@gmail.com>
References: <!&!AAAAAAAAAAAYAAAAAAAAAP2My3EH4FhKr+L7Y/eBBJTigAAAEAAAAC4VGK68oLhEh++Lu4Qz0YYBAAAAAA==@gmail.com> <273EC644-39B9-498D-8B06-4A03EAA71080@me.com> <CAOHCbisdMaByMtzfjCYbPO4s0wLjVMB=eD+nk5QX6pETM8Gpdg@mail.gmail.com> <adfeb34e-71c2-4807-95ca-82ee13c0669d@isocpp.org> <CAHK+-FtU0ZA_t1i_86Fz4C9KiOEdmbCPVLhaoMWFu11ogU8q5Q@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
Content-Type: multipart/alternative; boundary="Apple-Mail=_F912299A-8BBA-48D5-8D28-DA8B8660B07B"
X-Trace: ger.gmane.org 1443771477 32606 80.91.229.3 (2 Oct 2015 07:37:57 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 2 Oct 2015 07:37:57 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCW25A7E3QCRBUXIXCYAKGQEPX6M3MQ@isocpp.org Fri Oct 02 09:37:57 2015
Return-path: <std-proposals+bncBCW25A7E3QCRBUXIXCYAKGQEPX6M3MQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f198.google.com ([209.85.214.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCW25A7E3QCRBUXIXCYAKGQEPX6M3MQ@isocpp.org>)
	id 1Zhuui-0002sM-89
	for gclcip-std-proposals@m.gmane.org; Fri, 02 Oct 2015 09:37:56 +0200
Original-Received: by obbbh8 with SMTP id bh8sf130960816obb.0
        for <gclcip-std-proposals@m.gmane.org>; Fri, 02 Oct 2015 00:37:55 -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:content-type:message-id:mime-version
         :subject:date:references:to:in-reply-to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=8vLa3NiR08900k9tnETOL0ywF2ifXPFLo1u9R3pmeXk=;
        b=II2AzoYhAd1/JSfXmY/pZt1DPuMHOLA9djz4Mnu42dpiHxASdlJR3Efk5CpZZNE0dP
         +CnD/gYMH1mVEMHmjztRVJjHz9O62DApueGvyGSLism87zE4R7djFqqQn4HBsBH+jfiJ
         Cl/BOvfAInO5P4EfaF2vB9+I3vt+6X5PHnnVv0+vKYrV60r+Xzm4OY4N2UhAU8ZQfxgW
         X1rLiVojNhm7zpvJNGXoGDj2d7jKp5IOHGgQhBx5x5WBq+5UDx0hox21pQlspzMJrDVc
         TgD83a175jEQluybvnnZopJkHg5/3RXKvqhRF8tZeZ02+hkBckQm4K2C22Nq+61EDbj/
         EeMg==
X-Gm-Message-State: ALoCoQk3fXpUYvLyQToAnnd1KZKEmwnLFimVCZJgl32SjynVhG1X75uwmq91nKhooUvtIexUSjqk
X-Received: by 10.107.40.133 with SMTP id o127mr11920171ioo.27.1443771475279;
        Fri, 02 Oct 2015 00:37:55 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.138.137 with SMTP id qq9ls473844igb.43.gmail; Fri, 02 Oct
 2015 00:37:54 -0700 (PDT)
X-Received: by 10.66.184.42 with SMTP id er10mr18481088pac.117.1443771474024;
        Fri, 02 Oct 2015 00:37:54 -0700 (PDT)
Original-Received: from mail-pa0-x22e.google.com (mail-pa0-x22e.google.com. [2607:f8b0:400e:c03::22e])
        by mx.google.com with ESMTPS id ab2si134277pad.86.2015.10.02.00.37.53
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 02 Oct 2015 00:37:54 -0700 (PDT)
Received-SPF: pass (google.com: domain of potswa@gmail.com designates 2607:f8b0:400e:c03::22e as permitted sender) client-ip=2607:f8b0:400e:c03::22e;
Original-Received: by pacfv12 with SMTP id fv12so101871450pac.2
        for <std-proposals@isocpp.org>; Fri, 02 Oct 2015 00:37:53 -0700 (PDT)
X-Received: by 10.66.230.137 with SMTP id sy9mr18573938pac.154.1443771473754;
        Fri, 02 Oct 2015 00:37:53 -0700 (PDT)
Original-Received: from [172.20.10.2] ([121.54.54.188])
        by smtp.gmail.com with ESMTPSA id zk9sm10619079pac.7.2015.10.02.00.37.52
        for <std-proposals@isocpp.org>
        (version=TLSv1/SSLv3 cipher=OTHER);
        Fri, 02 Oct 2015 00:37:53 -0700 (PDT)
In-Reply-To: <CAHK+-FtU0ZA_t1i_86Fz4C9KiOEdmbCPVLhaoMWFu11ogU8q5Q@mail.gmail.com>
X-Mailer: Apple Mail (2.2104)
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::22e as permitted
 sender) smtp.mailfrom=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-Spam-Checked-In-Group: 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:21149
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/21149>

--Apple-Mail=_F912299A-8BBA-48D5-8D28-DA8B8660B07B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8


> On 2015=E2=80=9310=E2=80=9302, at 2:53 PM, Sam Kellett <samkellett@gmail.=
com> wrote:
>=20
> agree completely with everything. this sucks so bad.
>=20
> what about a new namespace that we are allowed to override (and create ou=
r own customization points)?
>=20
> adl::swap()

Such a namespace name would be an oxymoron.

> or even:
>=20
> std::adl::swap()

How about simply =E2=80=9Cstd::swap=E2=80=9D and let it do the work of pull=
ing in ADL?

> to avoid breaking changes.

Question for all: Must qualified std::swap be supported as an accessor to t=
he three-move algorithm, e.g. for ADL overloads that add side-effects but n=
ot optimization?

Perhaps it would be a good idea, going forward, to forbid ADL hooks from ca=
lling their std:: counterparts, so that std may encapsulate ADL.

--=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=_F912299A-8BBA-48D5-8D28-DA8B8660B07B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset=
=3Dutf-8"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space;" class=3D""><br class=3D""><di=
v><blockquote type=3D"cite" class=3D""><div class=3D"">On 2015=E2=80=9310=
=E2=80=9302, at 2:53 PM, Sam Kellett &lt;<a href=3D"mailto:samkellett@gmail=
..com" class=3D"">samkellett@gmail.com</a>&gt; wrote:</div><br class=3D"Appl=
e-interchange-newline"><div class=3D""><div dir=3D"ltr" style=3D"font-famil=
y: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; fo=
nt-weight: normal; letter-spacing: normal; line-height: normal; orphans: au=
to; text-align: start; text-indent: 0px; text-transform: none; white-space:=
 normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D""><div class=3D"gmail_extra">agree completely with everything. thi=
s sucks so bad.<br class=3D""><div class=3D"gmail_quote"><div class=3D""><b=
r class=3D""></div><div class=3D"">what about a new namespace that we are a=
llowed to override (and create our own customization points)?<br class=3D""=
><br class=3D""></div><div class=3D"">adl::swap()<br class=3D""></div></div=
></div></div></div></blockquote><div><br class=3D""></div><div>Such a names=
pace name would be an oxymoron.</div><br class=3D""><blockquote type=3D"cit=
e" class=3D""><div class=3D""><div dir=3D"ltr" style=3D"font-family: Helvet=
ica; font-size: 12px; font-style: normal; font-variant: normal; font-weight=
: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-=
align: start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D"=
"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><div class=3D"">or =
even:<br class=3D""><br class=3D""></div><div class=3D"">std::adl::swap()<b=
r class=3D""></div></div></div></div></div></blockquote><div><br class=3D""=
></div><div>How about simply =E2=80=9C<font face=3D"Courier" class=3D"">std=
::swap</font>=E2=80=9D and let it do the work of pulling in ADL?</div><br c=
lass=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><div dir=3D"=
ltr" style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; line-hei=
ght: normal; orphans: auto; text-align: start; text-indent: 0px; text-trans=
form: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-t=
ext-stroke-width: 0px;" class=3D""><div class=3D"gmail_extra"><div class=3D=
"gmail_quote"><div class=3D"">to avoid breaking changes.<br class=3D""></di=
v></div></div></div></div></blockquote><div><br class=3D""></div><div>Quest=
ion for all: Must qualified&nbsp;<font face=3D"Courier" class=3D"">std::swa=
p</font>&nbsp;be supported as an accessor to the three-move algorithm, e.g.=
 for ADL overloads that add side-effects but not optimization?</div></div><=
div><br class=3D""></div><div>Perhaps it would be a good idea, going forwar=
d, to forbid ADL hooks from calling their <font face=3D"Courier" class=3D""=
>std::</font> counterparts, so that <font face=3D"Courier" class=3D"">std</=
font> may encapsulate ADL.</div><div><br class=3D""></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=_F912299A-8BBA-48D5-8D28-DA8B8660B07B--

.
