220 29883 <CAFk2RUZgjH_=jhtpYDnJGaas+__xHp-ATUi156DtAkGpcQM6Eg@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: Sat, 17 Dec 2016 20:18:08 +0200
Lines: 21
Approved: news@gmane.org
Message-ID: <CAFk2RUZgjH_=jhtpYDnJGaas+__xHp-ATUi156DtAkGpcQM6Eg@mail.gmail.com>
References: <CAEddoJZxM5qe9qVfags_iNrd0YpvUo2xmSw-OqifnHJ+4wJtxA@mail.gmail.com>
 <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>
 <b1c473be-03c1-e4db-f0c4-a23f182c7154@gmail.com> <CAFk2RUYmdj2HwRpP2HhY=xujkFP1e5LYKkg6eOGBOF_yE-3Lcg@mail.gmail.com>
 <3df7e8eb-01a0-7804-f476-504b5a25a9fe@gmail.com> <CAFk2RUaY3+MnXkmvaC=LxgRA_RD_XQpFfX-HT6X3iq1wD7ggCg@mail.gmail.com>
 <20161217170428.GA10214@manuel-ThinkPad-L440.localdomain> <20161217171633.4919375.58072.21574@gmail.com>
 <CAEddoJaAZkeJS9Maj2z0vYGnfuNnJZ+qFFdjeQyesTF5itJxHA@mail.gmail.com>
 <15884364-3238-41c7-bc5a-aa5595a64ade@isocpp.org> <CAEddoJa4V_UFj7xcNwR_YNqCfbNtEMbXZgsYDyXCx=M51E2xdQ@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1481998690 13557 195.159.176.226 (17 Dec 2016 18:18:10 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sat, 17 Dec 2016 18:18:10 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRBYMC23BAKGQEMRB7XMY@isocpp.org Sat Dec 17 19:18:06 2016
Return-path: <std-proposals+bncBC5JHI7A7ALRBYMC23BAKGQEMRB7XMY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pg0-f71.google.com ([74.125.83.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBYMC23BAKGQEMRB7XMY@isocpp.org>)
	id 1cIJYb-0002qs-GY
	for gclcip-std-proposals@m.gmane.org; Sat, 17 Dec 2016 19:18:05 +0100
Original-Received: by mail-pg0-f71.google.com with SMTP id y71sf276993342pgd.0
        for <gclcip-std-proposals@m.gmane.org>; Sat, 17 Dec 2016 10:18:10 -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
         :content-transfer-encoding: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=AU+OUb06RcmjV22tAni4FS2j7bnwPAbIRE4EsDaRKok=;
        b=qX/8cbMot/iLVTFMa++Wee2KchgxE59ENGwJe2xIi+ZYR5jL5PwjEZ7uE3TCVJiWtu
         9SRB5QP+ITRtTSwPLozTCIQ3KLdV7RD9Oy+xsV9Bdz/5AuWxBHBFdg3dh0oka6MhcGPu
         /gRMPI0jLg9cUBQZVDgzczx3NPxshk9CbotjTNyRwVkp8wzZssipqsDKg2NzO1lUgsXM
         2oP1Dw3lm5qBZvH0O0Ghxy5hfDBsu/Py+scmRShQf8PFuI4ZKTieUrjYBOW8emQnerH4
         mRp29BPasLj+U0BqdGvHqjp/aF/8D6vJpg8ujn1oKTPKptjEGFBvkAJxmqEmqfEbcpXU
         wEnQ==
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:content-transfer-encoding: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=AU+OUb06RcmjV22tAni4FS2j7bnwPAbIRE4EsDaRKok=;
        b=tK/6HqL/EWRPtsfTw71D8ZqGGEkjNDrMkypniBPisETEh6ryAdRFwi0m+WFTUYJOGv
         n3i93dQNvi+usV3VcTzHz/fQmGzybLowARs/ikpbov0rmRjTbjF3g66u2lCVn8HtqsnY
         zudlJAJSXAo7ugEnf6yHlxGVPeY7HZaDC4FtDQPnGfA/EX4J2PUDs3rMhESvIWvebZR+
         UoEAElUAspq/wwHh4LUmkxzidnsFMeglscWh2Hfx5udZfuaFQHDpJlXif54z+N0/GpNW
         CRoRuuqQEdQIdSWYk5WK8DRcpb5dVizx1TOhQEwFzFOzXaZJ2FFwTuYUxIKrmBoA3dvV
         LbS 
X-Gm-Message-State: AKaTC03S8G9cnGhEdcUv5V9RmKby2paFfzU72deYgiUr3Viq/EH8wWjb4aJgUXDQ3OZPTA==
X-Received: by 10.99.127.83 with SMTP id p19mr4610183pgn.107.1481998689640;
        Sat, 17 Dec 2016 10:18:09 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.60.156 with SMTP id z28ls11617486otc.12.gmail; Sat, 17 Dec
 2016 10:18:08 -0800 (PST)
X-Received: by 10.176.3.143 with SMTP id 15mr5856759uau.10.1481998688953;
        Sat, 17 Dec 2016 10:18:08 -0800 (PST)
Original-Received: from mail-ua0-x230.google.com (mail-ua0-x230.google.com. [2607:f8b0:400c:c08::230])
        by mx.google.com with ESMTPS id j17si3412359vka.45.2016.12.17.10.18.08
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 17 Dec 2016 10:18:08 -0800 (PST)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c08::230 as permitted sender) client-ip=2607:f8b0:400c:c08::230;
Original-Received: by mail-ua0-x230.google.com with SMTP id b35so39844178uaa.0
        for <std-proposals@isocpp.org>; Sat, 17 Dec 2016 10:18:08 -0800 (PST)
X-Received: by 10.159.38.111 with SMTP id 102mr7336259uag.155.1481998688647;
 Sat, 17 Dec 2016 10:18:08 -0800 (PST)
Original-Received: by 10.103.50.74 with HTTP; Sat, 17 Dec 2016 10:18:08 -0800 (PST)
In-Reply-To: <CAEddoJa4V_UFj7xcNwR_YNqCfbNtEMbXZgsYDyXCx=M51E2xdQ@mail.gmail.com>
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:c08::230 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:29883
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29883>

On 17 December 2016 at 20:14, Jonathan M=C3=BCller
<jonathanmueller.dev@gmail.com> wrote:
>> I don't think "might be harmful" is a good enough reason to not have the
>> type.
>
> I think it's a very compelling reason. I rather have types that can be us=
ed
> without thinking, because misuse is a compiler error.

Then by all means use indirect and don't use cloned_ptr.

--=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.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/CAFk2RUZgjH_%3DjhtpYDnJGaas%2B__xHp-ATUi156DtAkG=
pcQM6Eg%40mail.gmail.com.

.
