220 29869 <b1c473be-03c1-e4db-f0c4-a23f182c7154@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: =?UTF-8?Q?Jonathan_M=c3=bcller?= <jonathanmueller.dev@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: New smart pointer: CopyConstructible and
 CopyAssignable flavor of unique_ptr
Date: Sat, 17 Dec 2016 15:22:07 +0100
Lines: 28
Approved: news@gmane.org
Message-ID: <b1c473be-03c1-e4db-f0c4-a23f182c7154@gmail.com>
References: <13702f32-32c2-447f-9996-3624fd678675@isocpp.org>
 <CAFk2RUY3c67YgivjPTSCB+FLUGfiFgi8F_8kcSSUwPeBp9tMmw@mail.gmail.com>
 <CAEddoJZxM5qe9qVfags_iNrd0YpvUo2xmSw-OqifnHJ+4wJtxA@mail.gmail.com>
 <e1e780b7-34ea-41bf-9aba-22a1eb6a5f3f@isocpp.org>
 <67a9e9ed-8748-4098-a43b-33598b516464@isocpp.org>
 <ad1bfe2f-c769-4938-9f92-8f6b396f03e6@isocpp.org>
 <e30ffb82-0d5f-fafd-39b4-28e60d07c948@gmail.com>
 <20161217141109.GA22645@manuel-ThinkPad-L440.localdomain>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
X-Trace: blaine.gmane.org 1481984531 14787 195.159.176.226 (17 Dec 2016 14:22:11 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sat, 17 Dec 2016 14:22:11 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.5.1
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCUMHC4Z6QGBBEMU2XBAKGQEAIR3BPI@isocpp.org Sat Dec 17 15:22:07 2016
Return-path: <std-proposals+bncBCUMHC4Z6QGBBEMU2XBAKGQEAIR3BPI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f70.google.com ([209.85.215.70])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCUMHC4Z6QGBBEMU2XBAKGQEAIR3BPI@isocpp.org>)
	id 1cIFsD-00036m-M0
	for gclcip-std-proposals@m.gmane.org; Sat, 17 Dec 2016 15:22:05 +0100
Original-Received: by mail-lf0-f70.google.com with SMTP id b14sf15442080lfg.6
        for <gclcip-std-proposals@m.gmane.org>; Sat, 17 Dec 2016 06:22:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:references:from:message-id:date:user-agent:mime-version
         :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=wkZr2PnwXjb6yBHouS2C0OZhgeKLOPacld4V0stv/+M=;
        b=jSH22qVMCvF7k9VOqU7mvwTFydDydNP6JQJTLZpoYEOShXjlFko4yTnosZksCxf1bn
         mYKoOCeDM4+SZJyF9xwHSm/LjDn7PosM8ZCLElzE4YV6oJIpUhaQSKFV/xHr03iXJS34
         MAMtI0l/FhnopqNRDY4UwX+vPF7zSKkGaluPM27tgMz2nOpVWXVrQWWrYHhUmVJYQOc5
         7u4KF2BmkIkVebohfBTB4mWuZ4n+LOlw5QthC9jcRAak7jVn7SEZp4Yssr9QXkzCc+5V
         EB6M1vTZsxnWr37ohw4rtHVIXo2cOe/uL0PmjZ1SjiFjOW4vs+EyrrhBT0WF6UeUhjxZ
         vUfQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:references:from:message-id:date
         :user-agent:mime-version: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=wkZr2PnwXjb6yBHouS2C0OZhgeKLOPacld4V0stv/+M=;
        b=I3az2hfB4SrPN05j9pHjAm08gOxmXPunlcop9kh2zHA6uWGpwJxq/8i/+KUm6X76EG
         N93V0DeFe0e8+Hcf21X/odBZoBrn5kyoRDpAc1F5q3GeZ9TskqvUhooQFGhgsZz8HFIF
         DMhayKSB37iyzW70X0lzezn2wa+cKPcLcUGKxouASRgbOUuI8MYLpCTKc1QVx449wQbx
         QJr81ZNTAIb+TygtHcRYWSBM2sD9O6Kh5jNgi8DNbVSD4z6EzhN19mAbob2hAzaEOo4K
         EiFLUA1n4/ne7S9IaHO8grLar/+lB3OoCJk41YFE/3Kv6+4c413eqrTZkcDMD3p6d2+A
         qeUw==
X-Gm-Message-State: AKaTC02UsU7bwKExr+WV/pPFNzINlqJOBXstEBV7KVKXkHgdVtETxRDns8enESEQPH4ipg==
X-Received: by 10.25.219.143 with SMTP id t15mr629603lfi.28.1481984530290;
        Sat, 17 Dec 2016 06:22:10 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.145.147 with SMTP id t141ls679815wmd.14.gmail; Sat, 17 Dec
 2016 06:22:09 -0800 (PST)
X-Received: by 10.28.196.207 with SMTP id u198mr6932044wmf.102.1481984529320;
        Sat, 17 Dec 2016 06:22:09 -0800 (PST)
Original-Received: from mail-wj0-x241.google.com (mail-wj0-x241.google.com. [2a00:1450:400c:c01::241])
        by mx.google.com with ESMTPS id fd10si11910490wjc.122.2016.12.17.06.22.09
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 17 Dec 2016 06:22:09 -0800 (PST)
Received-SPF: pass (google.com: domain of jonathanmueller.dev@gmail.com designates 2a00:1450:400c:c01::241 as permitted sender) client-ip=2a00:1450:400c:c01::241;
Original-Received: by mail-wj0-x241.google.com with SMTP id kp2so17939427wjc.0
        for <std-proposals@isocpp.org>; Sat, 17 Dec 2016 06:22:09 -0800 (PST)
X-Received: by 10.194.172.100 with SMTP id bb4mr6683464wjc.53.1481984528772;
        Sat, 17 Dec 2016 06:22:08 -0800 (PST)
Original-Received: from [192.168.1.98] (dslb-084-060-205-232.084.060.pools.vodafone-ip.de. [84.60.205.232])
        by smtp.gmail.com with ESMTPSA id z6sm11677619wjt.24.2016.12.17.06.22.07
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 17 Dec 2016 06:22:08 -0800 (PST)
In-Reply-To: <20161217141109.GA22645@manuel-ThinkPad-L440.localdomain>
X-Original-Sender: jonathanmueller.dev@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 jonathanmueller.dev@gmail.com designates 2a00:1450:400c:c01::241 as permitted
 sender) smtp.mailfrom=jonathanmueller.dev@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: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://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>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:29869
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29869>

On 17.12.2016 15:11, Manuel Bergler wrote:
> Sean Parent gave a talk[1] at Code::Dive this year where he talks about the
> problems of such a clone_ptr type.
>
> (He actually starts with a clone_ptr that was proposed to the Standards
> Committee
> but is different to the one proposed here, but then discussing alternatives
> that might seem reasonable)
>
> Best
> Manuel
>
> [1] https://youtu.be/cK_kftBNgBc?t=40m45s
>

I was not aware of this talk, thank you.

Sean Parent worded it better (and had better examples), but that's my 
opinion as well: clone_ptr is not a smart pointer.
If you want one, don't provide copy/assignment but add (non-)member 
clone() that does the deep copy.

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/b1c473be-03c1-e4db-f0c4-a23f182c7154%40gmail.com.

.
