220 15568 <ac147cea-63cd-44c6-a1d6-ee5bef29d072@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Arthur O'Dwyer <arthur.j.odwyer@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: RFC: Adding Symmetry Between shared_ptr and weak_ptr
Date: Sat, 10 Jan 2015 11:01:53 -0800 (PST)
Lines: 68
Approved: news@gmane.org
Message-ID: <ac147cea-63cd-44c6-a1d6-ee5bef29d072@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_346_1649129070.1420916513874"
X-Trace: ger.gmane.org 1420916521 23423 80.91.229.3 (10 Jan 2015 19:02:01 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 10 Jan 2015 19:02:01 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDLZJYWNDQIKF3WFUUCRUBGL2O3SE@isocpp.org Sat Jan 10 20:01:57 2015
Return-path: <std-proposals+bncBDLZJYWNDQIKF3WFUUCRUBGL2O3SE@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qc0-f198.google.com ([209.85.216.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDLZJYWNDQIKF3WFUUCRUBGL2O3SE@isocpp.org>)
	id 1YA1IK-00016Y-3R
	for gclcip-std-proposals@m.gmane.org; Sat, 10 Jan 2015 20:01:56 +0100
Original-Received: by mail-qc0-f198.google.com with SMTP id i8sf39043662qcq.1
        for <gclcip-std-proposals@m.gmane.org>; Sat, 10 Jan 2015 11:01:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:subject:mime-version:content-type
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=VPOraW0lAmn6GuKkPVO/Jqx6holwI5NlBmqkcqrEnrI=;
        b=JDcm8hLP9ToEO4DNbev9DhitlUjae3FgFNe0fUrsGJKqjexiah4g354cNPhIwS7hDs
         2+bCrdlFOQd+DOb+THXLz1K0GuYhnMsHR/0U6YTUh6FIj1j04I276H5fmMcHkF+5+mcu
         l4QCAGyvAmGi7pl9EX497wwoQ7FDrBBmspbo5FRT6OXrSdX7l25ioHYkvAn64KmrvZDn
         9U9tRUhpBuuCzpUd7F+vLbNiR41NCmlkyHOmJTHWyeIUqKKiMOvSmgvC78SkRJ9TIaJD
         38UmncbRz1kfAl540fXZhOQqV8g5yZbdxLr1PV0ovgshObWV0kPr/BKFSvtRQPvc1rsl
         gZPA==
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:subject:mime-version
         :content-type:x-original-sender:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=VPOraW0lAmn6GuKkPVO/Jqx6holwI5NlBmqkcqrEnrI=;
        b=bMts2vYtC1cRRmza33S8+JOvOkRiSRUmNzVyjpnyd1Fg7z6IE428laIWlWrB/CR6/6
         5tBBsasTZLmcyWkTBcHgwM/KvulzNJnkPgWJPyawhR3YRbyrbUeNueqpnCpq8177uMbo
         CLjX5cA3jXN4oZ0mNC0CO9uT9XKjHWlO8VFW+sP10wcf/H1aOt8AD1grKTze+1/Cj5uh
         gSwDkEeLEBriyd8XSUalmB6AMaaCQxYA968S4WNDKCmVe9Ww16sBblPL8Mfx1JIoMRgf
         RvyEh+a44aYUrxZUeQVaRBzgkcph5iRA6fZUbT1AreVVIsESzV6QY+giY9BtX720enbi
         5byg==
X-Gm-Message-State: ALoCoQkYaqPzElnl90D1JiWEsJU89H/3SwtS4pPcMiExY0XN1wSKI5zhp4xeYYiqWLXAXUSiekGU
X-Received: by 10.52.165.113 with SMTP id yx17mr16120518vdb.0.1420916514959;
        Sat, 10 Jan 2015 11:01:54 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.93.165 with SMTP id d34ls2102003qge.61.gmail; Sat, 10 Jan
 2015 11:01:54 -0800 (PST)
X-Received: by 10.140.91.40 with SMTP id y37mr742qgd.11.1420916514304;
        Sat, 10 Jan 2015 11:01:54 -0800 (PST)
X-Original-Sender: arthur.j.odwyer@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:15568
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/15568>

------=_Part_346_1649129070.1420916513874
Content-Type: multipart/alternative; 
	boundary="----=_Part_347_494773300.1420916513877"

------=_Part_347_494773300.1420916513877
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I've got a rough draft of a proposal for the next meeting in May, and would=
=20
like to hear anyone's feedback on the format and content before then.

https://quuxplusone.github.io/draft/Nweak_ptr_proposal.html

The TL;DR is that it proposes two very small new library features:
- shared_ptr::unlock(), which turns a shared_ptr into a weak_ptr, symmetric=
=20
with weak_ptr::lock()
- An two-argument constructor for weak_ptr(), symmetric with shared_ptr's=
=20
two-argument constructor

=E2=80=93Arthur

--=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/.

------=_Part_347_494773300.1420916513877
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I've got a rough draft of a proposal for the next mee=
ting in May, and would like to hear anyone's feedback on the format and con=
tent before then.</div><div><br></div>https://quuxplusone.github.io/draft/N=
weak_ptr_proposal.html<br><div><br></div><div>The TL;DR is that it proposes=
 two very small new library features:</div><div>- shared_ptr::unlock(), whi=
ch turns a shared_ptr into a weak_ptr, symmetric with weak_ptr::lock()</div=
><div>- An two-argument constructor for weak_ptr(), symmetric with shared_p=
tr's two-argument constructor</div><div><br></div><div>=E2=80=93Arthur</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_347_494773300.1420916513877--
------=_Part_346_1649129070.1420916513874--

.
