220 13705 <CAGg_6+OrfzR6=WHYSOUHt4LTpMq8pNdojm+s5zUuoH86QNNcCg@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: Generic std::size, a la std::begin
Date: Mon, 6 Oct 2014 09:51:56 -0500
Lines: 78
Approved: news@gmane.org
Message-ID: <CAGg_6+OrfzR6=WHYSOUHt4LTpMq8pNdojm+s5zUuoH86QNNcCg@mail.gmail.com>
References: <8808df5e-62c4-459d-acd9-00e63adb9476@isocpp.org> <CAOHCbiuKV=1kQD6Mgs9j_tC7TnkgzE=z4tohAud-yWnk41HctQ@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=bcaec53d5ee1c979c70504c23b7b
X-Trace: ger.gmane.org 1412607173 3293 80.91.229.3 (6 Oct 2014 14:52:53 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 6 Oct 2014 14:52:53 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCE35H5S6IDBBNOZZKQQKGQEPXKQVIQ@isocpp.org Mon Oct 06 16:52:47 2014
Return-path: <std-proposals+bncBCE35H5S6IDBBNOZZKQQKGQEPXKQVIQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ee0-f69.google.com ([74.125.83.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCE35H5S6IDBBNOZZKQQKGQEPXKQVIQ@isocpp.org>)
	id 1Xb9eQ-0003vV-P0
	for gclcip-std-proposals@m.gmane.org; Mon, 06 Oct 2014 16:52:38 +0200
Original-Received: by mail-ee0-f69.google.com with SMTP id b15sf1072184eek.8
        for <gclcip-std-proposals@m.gmane.org>; Mon, 06 Oct 2014 07:52:38 -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: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=THXrM01nGU5eBzulioBKaFs+Jr+bfabQjmsdCEVVGFI=;
        b=LEGMqzLrvPXEAU8zm9qSU4omrRlCf5DGC328IjoWyzXDiY/Fje5SMDb5rcCAnyGkks
         /XQc7JsrPLBHOTbKjZ6KpZESay6gvDb3vSZ7Jygt/qUyB0Jn5dYArO9tErVuc8wk+Ifl
         aRJ6R8O6mxGEz7e0vTKsdxw3wy+aOr5abFWpwokhoReHx5Oow+hDr2Blirpwz5LSuDzo
         RFHFL7t3bvTR7NlIjnYzsiy9ipC4yCwn2LlyEfVbc9eg6BwPbrgOY9Z9VDS4J1b45bGF
         z53/LiHmJezugRm1rf/soQUrk7zz9tBcoCwE5hCtIhMLswShNNkzE13M0nNk2m5/ORzG
         /Scw==
X-Gm-Message-State: ALoCoQm22HsoorisxOzgGZmDy3P20t5eUTJ9J4yghN6ogq5gxertltf61A/8VXdGAuHdaLVIgWW1
X-Received: by 10.112.168.225 with SMTP id zz1mr1393782lbb.8.1412607158272;
        Mon, 06 Oct 2014 07:52:38 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.97.2 with SMTP id dw2ls256671wib.29.canary; Mon, 06 Oct
 2014 07:52:37 -0700 (PDT)
X-Received: by 10.180.188.102 with SMTP id fz6mr8559096wic.61.1412607157294;
        Mon, 06 Oct 2014 07:52:37 -0700 (PDT)
Original-Received: from mail-wg0-x22d.google.com (mail-wg0-x22d.google.com [2a00:1450:400c:c00::22d])
        by mx.google.com with ESMTPS id ek3si5087910wib.39.2014.10.06.07.52.37
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 06 Oct 2014 07:52:37 -0700 (PDT)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 2a00:1450:400c:c00::22d as permitted sender) client-ip=2a00:1450:400c:c00::22d;
Original-Received: by mail-wg0-f45.google.com with SMTP id m15so6717670wgh.4
        for <std-proposals@isocpp.org>; Mon, 06 Oct 2014 07:52:37 -0700 (PDT)
X-Received: by 10.180.20.33 with SMTP id k1mr19871607wie.14.1412607156775;
 Mon, 06 Oct 2014 07:52:36 -0700 (PDT)
Original-Sender: nliber@gmail.com
Original-Received: by 10.194.242.198 with HTTP; Mon, 6 Oct 2014 07:51:56 -0700 (PDT)
In-Reply-To: <CAOHCbiuKV=1kQD6Mgs9j_tC7TnkgzE=z4tohAud-yWnk41HctQ@mail.gmail.com>
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::22d 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: <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:13705
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/13705>

--bcaec53d5ee1c979c70504c23b7b
Content-Type: text/plain; charset=UTF-8

On 6 October 2014 09:40, Tony V E <tvaneerd@gmail.com> wrote:

>
> One concern I have, however, is how we do library extension points, in
> general.  ie it is hard to call swap(x,y) correctly:
>
> {
>    using std::swap;
>    swap(x, y);
> }
>
> Will users need to do the same for std::size?
>
> In general, I'd prefer the customization/extension point be separate from
> the caller's API.  ie customize std_size(), but call std::size().
>

Someone is going to have to write a paper so we can discuss it in LEWG (no,
it won't be me, as bike shedding issues bore me to tears).  It would be
nice if users knew not to use the names we are hijacking from their
namespaces.
-- 
 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/.

--bcaec53d5ee1c979c70504c23b7b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On 6 October 2014 09:40, Tony V E <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:tvaneerd@gmail.com" target=3D"_blank">tvaneerd@gmail.com</a=
>&gt;</span> wrote:<br><div class=3D"gmail_extra"><div class=3D"gmail_quote=
"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:=
1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><br><div class=3D"gmail_e=
xtra"><div class=3D"gmail_quote"><div>One concern I have, however, is how w=
e do library extension points, in general.=C2=A0 ie it is hard to call swap=
(x,y) correctly:<br><br>{<br></div><div>=C2=A0=C2=A0 using std::swap;<br></=
div><div>=C2=A0=C2=A0 swap(x, y);<br>}<br><br></div><div>Will users need to=
 do the same for std::size?<br><br></div><div>In general, I&#39;d prefer th=
e customization/extension point be separate from the caller&#39;s API.=C2=
=A0 ie customize std_size(), but call std::size().<br></div></div></div></d=
iv></blockquote><div><br></div><div>Someone is going to have to write a pap=
er so we can discuss it in LEWG (no, it won&#39;t be me, as bike shedding i=
ssues bore me to tears).=C2=A0 It would be nice if users knew not to use th=
e names we are hijacking from their namespaces.</div></div>-- <br>=C2=A0Nev=
in &quot;:-)&quot; Liber=C2=A0 &lt;mailto:<a href=3D"mailto:nevin@eviloverl=
ord.com" target=3D"_blank">nevin@eviloverlord.com</a>&gt;=C2=A0 (847) 691-1=
404
</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 />

--bcaec53d5ee1c979c70504c23b7b--

.
