220 29840 <CAFk2RUYkuueANAWE=Rpdt6t+=38Q_FpLvrdJbtQmP6HSRfdD-g@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: New smart pointer: CopyConstructible and
 CopyAssignable flavor of unique_ptr
Date: Fri, 16 Dec 2016 17:51:51 +0200
Lines: 22
Approved: news@gmane.org
Message-ID: <CAFk2RUYkuueANAWE=Rpdt6t+=38Q_FpLvrdJbtQmP6HSRfdD-g@mail.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>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: blaine.gmane.org 1481903516 30812 195.159.176.226 (16 Dec 2016 15:51:56 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 16 Dec 2016 15:51:56 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRBGE32DBAKGQEAABT5IY@isocpp.org Fri Dec 16 16:51:52 2016
Return-path: <std-proposals+bncBC5JHI7A7ALRBGE32DBAKGQEAABT5IY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pg0-f72.google.com ([74.125.83.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBGE32DBAKGQEAABT5IY@isocpp.org>)
	id 1cHunV-0006xq-7x
	for gclcip-std-proposals@m.gmane.org; Fri, 16 Dec 2016 16:51:49 +0100
Original-Received: by mail-pg0-f72.google.com with SMTP id g186sf193776027pgc.2
        for <gclcip-std-proposals@m.gmane.org>; Fri, 16 Dec 2016 07:51:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject: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=SBdaUB+RlEuhQDGJDrE+IiFnorzB5NGIBPbEzdcabw8=;
        b=efX/mxWRgH8WF+f+okLqv37UgRgy7BNk08varVxsm+9h/M7Nr/zJquskxvKk3qOSo8
         nwOIEUYOMH1KksqG+bOLVCv8YNZdQs2JM6bU5LCaV3IY6hGaMaFIq+Oi7vaLQEDCTCsP
         AfvPObIp2vJaxKvo/LyHXA4S/NJ7cumKAC2+7s/fyUehUrYednGwvr1yTuGVVIKb7Qho
         5J3Z+lxQzL54V7DlYv8Lr7uoxWAuaN72UGve2ITab9PX182G9JODJ+mrrRCGYYe8dEop
         f8sIhg/dt/S1eC1FJ4luZ+5To5Sp7ogz2aWqqNmbQ51c3yRCcW3YmuPyQ64DcwShR0UL
         RALA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject: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=SBdaUB+RlEuhQDGJDrE+IiFnorzB5NGIBPbEzdcabw8=;
        b=X10RmcpqJJQNJ6xpqTYpVTT5QM2bryhwDDO58dw3HAzurNMT+1faZoq54eEkjvlYh4
         6q+Slr4heyBcE9HnjBAIuGEej+YHOS9rhSiiwtKcbKvmFy2nZ0nq/vPEZOS3fuKC2vuB
         eJCyHSa3Ok029EGiThG2Y5Is6l4UwYV4ZOSxM7QiSIcjk+Vg7ZUu+nj1NrHSK4t3QBTJ
         Oi06Sy8j7mHWRsSBtDRkS9nVKOacfNeLFdnSE4v3E8WQ3Lzth9aOlqOrqK2bTMS61XCV
         izvEk0lMUx01tqDyNX0Ma+hloMW0EcKt204snN9sMb9acNMk1/2+gUyno2DZykVC6foi
         MQIQ==
X-Gm-Message-State: AKaTC03sUFjxjVo2Bs2yrS//HH+vZ7Fmb93SMzwkB9Th1JdzXWMLmBh1M8FAqSyvq6aDsA==
X-Received: by 10.99.164.25 with SMTP id c25mr1776353pgf.114.1481903513345;
        Fri, 16 Dec 2016 07:51:53 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.23.193 with SMTP id j59ls8948925otj.24.gmail; Fri, 16 Dec
 2016 07:51:52 -0800 (PST)
X-Received: by 10.31.137.139 with SMTP id l133mr1468993vkd.155.1481903512573;
        Fri, 16 Dec 2016 07:51:52 -0800 (PST)
Original-Received: from mail-vk0-x236.google.com (mail-vk0-x236.google.com. [2607:f8b0:400c:c05::236])
        by mx.google.com with ESMTPS id y66si2303593vkf.86.2016.12.16.07.51.52
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 16 Dec 2016 07:51:52 -0800 (PST)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c05::236 as permitted sender) client-ip=2607:f8b0:400c:c05::236;
Original-Received: by mail-vk0-x236.google.com with SMTP id p9so90613083vkd.3
        for <std-proposals@isocpp.org>; Fri, 16 Dec 2016 07:51:52 -0800 (PST)
X-Received: by 10.31.171.196 with SMTP id u187mr1526351vke.22.1481903512228;
 Fri, 16 Dec 2016 07:51:52 -0800 (PST)
Original-Received: by 10.103.50.74 with HTTP; Fri, 16 Dec 2016 07:51:51 -0800 (PST)
In-Reply-To: <67a9e9ed-8748-4098-a43b-33598b516464@isocpp.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 ville.voutilainen@gmail.com designates 2607:f8b0:400c:c05::236 as permitted
 sender) smtp.mailfrom=ville.voutilainen@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:29840
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29840>

On 16 December 2016 at 17:46, Nicol Bolas <jmckesson@gmail.com> wrote:
> The only question is how deep the copy goes: whether you're creating a `T`
> itself or some class derived from `T`.


In these problem areas the latter, even if I have a
deepcopyinghandle<T>. Copying or even
cloning a T itself is not all that difficult if it likes to be cloned.
It's much harder to clone
a U when all you have is a handle to a T, and that sort of deep
copying is a real life-saver
when provided by an easy-to-use library facility. It makes otherwise
hard problems trivial,
or rather allows focusing on the actual problem rather than the
cloning mechanics.

-- 
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/CAFk2RUYkuueANAWE%3DRpdt6t%2B%3D38Q_FpLvrdJbtQmP6HSRfdD-g%40mail.gmail.com.

.
