220 15595 <A0ACF57C-CCB5-414F-AFD8-3DB9DF0D6C5B@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: RFC: Adding Symmetry Between shared_ptr and weak_ptr
Date: Mon, 12 Jan 2015 20:47:00 +0800
Lines: 84
Approved: news@gmane.org
Message-ID: <A0ACF57C-CCB5-414F-AFD8-3DB9DF0D6C5B@gmail.com>
References: <ac147cea-63cd-44c6-a1d6-ee5bef29d072@isocpp.org> <F6EE9C20-E722-4924-B8A9-FFD5D3A8B797@gmail.com> <0b903f58-04a0-4f96-a953-2709feb4dd92@isocpp.org> <CAFk2RUZvuGf7BbUPXatA9Ev=qoC_fVsUir3Y01sqpp10N7rxhQ@mail.gmail.com> <75EE1E0A-6CD6-4E9D-B33E-A480EF74912F@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
Content-Type: multipart/alternative; boundary="Apple-Mail=_5EAAFCD6-70EA-41C8-91FE-8F07EF1E2819"
X-Trace: ger.gmane.org 1421066896 16465 80.91.229.3 (12 Jan 2015 12:48:16 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 12 Jan 2015 12:48:16 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCW25A7E3QCRBCEFZ6SQKGQEPQBK5ZI@isocpp.org Mon Jan 12 13:48:10 2015
Return-path: <std-proposals+bncBCW25A7E3QCRBCEFZ6SQKGQEPQBK5ZI@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+bncBCW25A7E3QCRBCEFZ6SQKGQEPQBK5ZI@isocpp.org>)
	id 1YAePh-0004fu-TU
	for gclcip-std-proposals@m.gmane.org; Mon, 12 Jan 2015 13:48:10 +0100
Original-Received: by mail-ob0-f199.google.com with SMTP id wp4sf159961168obc.2
        for <gclcip-std-proposals@m.gmane.org>; Mon, 12 Jan 2015 04:48:08 -0800 (PST)
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:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=do/ICH4CqyIRC2wQTmyQJqPLAFs6eGunAa9azfdJnRc=;
        b=Pg0AFhIyJUVqF238VbelvsfXC62FMVMySlMyGF6iAxkxwJ9C+8A7vzBwMRSukDdN5N
         aNz5frrRsVAlDcU/RvYMIHMRUNaXhKr3+LwfFMC7MtF9lAWfC54CWgY+i12rAoTY0hzP
         OrGlGzrDc0oRsggjp+ISV46B1Lfhdal88rfZdxx9PIPlD5BeQxNwCCQVdZ2NBS16o05s
         0Z1nJibC4KEBx9DvMveuHT36GFmjCv8Ci7tMtu3yyd1eWz+9y2F/6APwoGRKECXKrmDP
         7mSBkfJ3byb42yJi0Eg8j5vwoNSN0Tzxb6Ws+IYNlpXuS2C82c9OaHbJBNxmg0bA+xu0
         /zHg==
X-Gm-Message-State: ALoCoQlofY/dv/VgljozpF9a+PzXD/S/qORaaso6RQZvs+PO2JMIAktEYeAbjpPxES4OYhPbdqod
X-Received: by 10.42.20.3 with SMTP id e3mr23801528icb.11.1421066888785;
        Mon, 12 Jan 2015 04:48:08 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.35.79 with SMTP id j76ls1654798ioj.36.gmail; Mon, 12 Jan
 2015 04:48:07 -0800 (PST)
X-Received: by 10.68.167.36 with SMTP id zl4mr43470950pbb.83.1421066887929;
        Mon, 12 Jan 2015 04:48:07 -0800 (PST)
Original-Received: from mail-pd0-x233.google.com (mail-pd0-x233.google.com. [2607:f8b0:400e:c02::233])
        by mx.google.com with ESMTPS id u3si23136742pdl.168.2015.01.12.04.48.07
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 12 Jan 2015 04:48:07 -0800 (PST)
Received-SPF: pass (google.com: domain of potswa@gmail.com designates 2607:f8b0:400e:c02::233 as permitted sender) client-ip=2607:f8b0:400e:c02::233;
Original-Received: by mail-pd0-f179.google.com with SMTP id fp1so30227872pdb.10
        for <std-proposals@isocpp.org>; Mon, 12 Jan 2015 04:48:07 -0800 (PST)
X-Received: by 10.68.241.102 with SMTP id wh6mr43423374pbc.18.1421066887386;
        Mon, 12 Jan 2015 04:48:07 -0800 (PST)
Original-Received: from [172.20.10.2] ([121.54.44.89])
        by mx.google.com with ESMTPSA id lo3sm14495828pab.26.2015.01.12.04.48.01
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 12 Jan 2015 04:48:06 -0800 (PST)
In-Reply-To: <75EE1E0A-6CD6-4E9D-B33E-A480EF74912F@gmail.com>
X-Mailer: Apple Mail (2.1993)
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:c02::233 as permitted
 sender) smtp.mail=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-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:15595
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/15595>

--Apple-Mail=_5EAAFCD6-70EA-41C8-91FE-8F07EF1E2819
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8


> On 2015=E2=80=9301=E2=80=9312, at 6:13 PM, David Krauss <potswa@gmail.com=
 <mailto:potswa@gmail.com>> wrote:
>=20
> And then, it=E2=80=99s not really Arthur=E2=80=99s problem to deal with.


Oops, in the first case (discrimination really isn=E2=80=99t a conforming e=
xtension), it is still Arthur=E2=80=99s decision.

This case isn=E2=80=99t particularly interesting, since the function always=
 returns a prvalue, and if the shared_ptr is a temporary, it will get reset=
 at the semicolon anyway. I only suggested it since it stood out, from the =
perspective of someone who does use ref-qualification pretty thoroughly.

Qualification makes things run smoother. It=E2=80=99s only arcane as long a=
s nobody uses it. Changes to operator=3D don=E2=80=99t make a fair comparis=
on, since that would have broken a lot of legacy code. That said, the diffe=
rence in this case might not be enough to warrant any effort at all.

--=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=_5EAAFCD6-70EA-41C8-91FE-8F07EF1E2819
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"><meta http-equiv=3D"Content-Type" content=3D"text/html charset=3D=
utf-8"><meta http-equiv=3D"Content-Type" content=3D"text/html charset=3Dutf=
-8"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D""><br class=3D""><div clas=
s=3D""><blockquote type=3D"cite" class=3D""><div class=3D"">On 2015=E2=80=
=9301=E2=80=9312, at 6:13 PM, David Krauss &lt;<a href=3D"mailto:potswa@gma=
il.com" class=3D"">potswa@gmail.com</a>&gt; wrote:</div><br class=3D"Apple-=
interchange-newline"><div class=3D""><meta http-equiv=3D"Content-Type" cont=
ent=3D"text/html charset=3Dutf-8" class=3D""><div style=3D"word-wrap: break=
-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" cl=
ass=3D"" dir=3D"auto">And then, it=E2=80=99s not really Arthur=E2=80=99s pr=
oblem to deal with.</div></div></blockquote></div><div class=3D""><br class=
=3D""></div><div class=3D"">Oops, in the first case (discrimination really =
isn=E2=80=99t a conforming extension), it is still Arthur=E2=80=99s decisio=
n.</div><div class=3D""><br class=3D""></div><div class=3D"">This case isn=
=E2=80=99t particularly interesting, since the function always returns a pr=
value, and if the <font face=3D"Courier" class=3D"">shared_ptr</font> is a =
temporary, it will get reset at the semicolon anyway. I only suggested it s=
ince it stood out, from the perspective of someone who does use ref-qualifi=
cation pretty thoroughly.</div><div class=3D""><br class=3D""></div><div cl=
ass=3D"">Qualification makes things run smoother. It=E2=80=99s only arcane =
as long as nobody uses it. Changes to&nbsp;<font face=3D"Courier" class=3D"=
">operator=3D</font> don=E2=80=99t make a fair comparison, since that would=
 have broken a lot of legacy code. That said, the difference in this case m=
ight not be enough to warrant any effort at all.</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=_5EAAFCD6-70EA-41C8-91FE-8F07EF1E2819--

.
