220 13725 <CAOHCbitsqa5ga_smK2rars_v78nyuoNtN1a2u2ZR50tE-PrAsQ@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Tony V E <tvaneerd@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Generic std::size, a la std::begin
Date: Mon, 6 Oct 2014 15:47:08 -0400
Lines: 93
Approved: news@gmane.org
Message-ID: <CAOHCbitsqa5ga_smK2rars_v78nyuoNtN1a2u2ZR50tE-PrAsQ@mail.gmail.com>
References: <8808df5e-62c4-459d-acd9-00e63adb9476@isocpp.org>
	<20141004004445.GA8207@lenovo>
	<CB0A8C8F-02D1-449C-B41C-5AE9FE6AB069@gmail.com>
	<c698550a-9ed6-457c-9dcb-a8aed3d0b737@isocpp.org>
	<m0uhol$4u1$1@ger.gmane.org>
	<890596a6-4fe4-4fe4-b96b-0196aaac94cf@isocpp.org>
	<51161156-ee03-4662-bfcd-a990e6fe830d@isocpp.org>
	<m0ul2n$je0$1@ger.gmane.org>
	<861975ec-a57f-448b-9321-ef061226f265@isocpp.org>
	<1d95ed0b-2872-457a-80c4-c9c73182aed6@isocpp.org>
	<CAGg_6+P-x5KtC+O329yfZHen4fBSNFhcSVMmG9qds3cLj=yS7Q@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=047d7b3a90442124f00504c65984
X-Trace: ger.gmane.org 1412624839 14432 80.91.229.3 (6 Oct 2014 19:47:19 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 6 Oct 2014 19:47:19 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCUZ5QWKNQIL3Y6LUECRUBDGD7VU6@isocpp.org Mon Oct 06 21:47:11 2014
Return-path: <std-proposals+bncBCUZ5QWKNQIL3Y6LUECRUBDGD7VU6@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ee0-f71.google.com ([74.125.83.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCUZ5QWKNQIL3Y6LUECRUBDGD7VU6@isocpp.org>)
	id 1XbEFT-0008A4-BG
	for gclcip-std-proposals@m.gmane.org; Mon, 06 Oct 2014 21:47:11 +0200
Original-Received: by mail-ee0-f71.google.com with SMTP id d17sf3341161eek.6
        for <gclcip-std-proposals@m.gmane.org>; Mon, 06 Oct 2014 12:47:11 -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: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=d0j/I9dAZy2MNY0WrsS7j9UnplLhHDNgKrF7xlYf4E8=;
        b=OhwdQMtv4zjsU0XxmFCANPHsRxHB74SaLSGQ7uZzBrUVHfpZECZyYFKFY0yqA/pEav
         eW2AJtoWvRid8E/siVM2jqF9iW7KyvarujexxFYjhwU93lCTITwHGeOiYHbs7rQza0Gy
         WzbKNhO6gKPugSE5h+OV/itO8wzfsGho0a8C/48icBPO+mFp+Zz3AEoCcM4mc3lX2s3V
         tVV5usK7Yg9Mc3ZazPshe/MaD9wpOOGuwuY3nvJB+q/+nyLNy1v4BDsCKKZGzWpdWW6K
         zWBp2IoqsYUm6RoCr+Ex1G4L0OM4nMdLGQur+CIzOFpb3jMCpNaNDSQh1qJdMFL/QtER
         j/YA==
X-Gm-Message-State: ALoCoQmPOOU11zYYJRxld8HbR7dLraz6NAfz7PnI7a6gWsAAgTjybZ7liRo2B9ASCKumdTg47hQy
X-Received: by 10.152.6.9 with SMTP id w9mr60236law.7.1412624831085;
        Mon, 06 Oct 2014 12:47:11 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.37.194 with SMTP id a2ls612460lak.41.gmail; Mon, 06 Oct
 2014 12:47:09 -0700 (PDT)
X-Received: by 10.152.9.132 with SMTP id z4mr27816526laa.8.1412624829429;
        Mon, 06 Oct 2014 12:47:09 -0700 (PDT)
Original-Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com [2a00:1450:4010:c03::22a])
        by mx.google.com with ESMTPS id db6si25635323lad.9.2014.10.06.12.47.09
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 06 Oct 2014 12:47:09 -0700 (PDT)
Received-SPF: pass (google.com: domain of tvaneerd@gmail.com designates 2a00:1450:4010:c03::22a as permitted sender) client-ip=2a00:1450:4010:c03::22a;
Original-Received: by mail-la0-f42.google.com with SMTP id mk6so5098198lab.1
        for <std-proposals@isocpp.org>; Mon, 06 Oct 2014 12:47:09 -0700 (PDT)
X-Received: by 10.112.134.101 with SMTP id pj5mr25955890lbb.47.1412624828931;
 Mon, 06 Oct 2014 12:47:08 -0700 (PDT)
Original-Received: by 10.112.75.199 with HTTP; Mon, 6 Oct 2014 12:47:08 -0700 (PDT)
In-Reply-To: <CAGg_6+P-x5KtC+O329yfZHen4fBSNFhcSVMmG9qds3cLj=yS7Q@mail.gmail.com>
X-Original-Sender: tvaneerd@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of tvaneerd@gmail.com designates 2a00:1450:4010:c03::22a as permitted
 sender) smtp.mail=tvaneerd@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:13725
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/13725>

--047d7b3a90442124f00504c65984
Content-Type: text/plain; charset=UTF-8

On Mon, Oct 6, 2014 at 3:42 PM, Nevin Liber <nevin@eviloverlord.com> wrote:

> On 6 October 2014 14:40, Myriachan <myriachan@gmail.com> wrote:
>
>> That's only because it is decades too late to change STL to rename the
>> member functions count and max_count.
>>
>
> So instead you propose to confuse users even more.  That ship has sailed;
> why should we now be deliberately inconsistent with it?
>
>
>> The conflict with the sizeof operator is strong.
>>
>
> How is it any stronger than size() inside STL containers?
>

container::size() is called as a member function:

    foo.size().

both sizeof() and std::size() would are called like free functions:

    size(foo);
    sizeof(foo);

It could be argued that this is thus "stronger".

Tony

-- 

--- 
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/.

--047d7b3a90442124f00504c65984
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Mon, Oct 6, 2014 at 3:42 PM, Nevin Liber <span dir=3D"ltr">&lt;<a hr=
ef=3D"mailto:nevin@eviloverlord.com" target=3D"_blank">nevin@eviloverlord.c=
om</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"marg=
in:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"=
><span class=3D"">On 6 October 2014 14:40, Myriachan <span dir=3D"ltr">&lt;=
<a href=3D"mailto:myriachan@gmail.com" target=3D"_blank">myriachan@gmail.co=
m</a>&gt;</span> wrote:<br></span><div class=3D"gmail_extra"><div class=3D"=
gmail_quote"><span class=3D""><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"lt=
r"><div>That&#39;s only because it is decades too late to change STL to ren=
ame the member functions <span style=3D"font-family:courier new,monospace">=
count</span> and <span style=3D"font-family:courier new,monospace">max_coun=
t</span>.=C2=A0 </div></div></blockquote><div><br></div></span><div>So inst=
ead you propose to confuse users even more.=C2=A0 That ship has sailed; why=
 should we now be deliberately inconsistent with it?</div><span class=3D"">=
<div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>The c=
onflict with the <span style=3D"font-family:courier new,monospace">sizeof</=
span> operator is strong.<br></div></div></blockquote><div><br></div></span=
><div>How is it any stronger than size() inside STL containers?</div></div>=
</div></div></blockquote><div><br></div><div>container::size() is called as=
 a member function:<br><br>=C2=A0=C2=A0=C2=A0 foo.size().<br><br></div><div=
>both sizeof() and std::size() would are called like free functions:<br><br=
></div><div>=C2=A0=C2=A0=C2=A0 size(foo);<br></div><div>=C2=A0=C2=A0=C2=A0 =
sizeof(foo);<br><br></div><div>It could be argued that this is thus &quot;s=
tronger&quot;.<br></div></div><br></div><div class=3D"gmail_extra">Tony<br>=
<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 />

--047d7b3a90442124f00504c65984--

.
