220 35164 <11351584.INmCtv91bl@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: std::vector must have strong move guarantees.
Date: Mon, 30 Oct 2017 15:57:33 -0700
Lines: 29
Approved: news@gmane.org
Message-ID: <11351584.INmCtv91bl@tjmaciei-mobl1>
References: <0f1d296f-1d9c-4a63-bde0-bb1085b56e6c@isocpp.org> <f76f9a4c-1b06-4504-80fc-c34ac036e858@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 1509404254 10742 195.159.176.226 (30 Oct 2017 22:57:34 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 30 Oct 2017 22:57:34 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBX6433HQKGQEJBRDFKI@isocpp.org Mon Oct 30 23:57:30 2017
Return-path: <std-proposals+bncBCB4TK757YBRBX6433HQKGQEJBRDFKI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wr0-f200.google.com ([209.85.128.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBX6433HQKGQEJBRDFKI@isocpp.org>)
	id 1e9Izo-0002BV-Eh
	for gclcip-std-proposals@m.gmane.org; Mon, 30 Oct 2017 23:57:28 +0100
Original-Received: by mail-wr0-f200.google.com with SMTP id u98sf8898495wrb.4
        for <gclcip-std-proposals@m.gmane.org>; Mon, 30 Oct 2017 15:57:36 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1509404256; cv=pass;
        d=google.com; s=arc-20160816;
        b=WJMskZxnjW098Z2APDxYU5magau0osKfO30nU03bPO0UFdZuWapRh9RowNU5xqO13i
         fWr8uckEMzwLhCh3Kzlgmh6SyoRAd6YeHKathUH9Gd+6Q8rDfduxjCaFGI/TuINTmFwH
         r8+gSvTbSDTX7KQ/BhEEcMyEkHcUKHXXqokS/tBYJ13500sTdfKtMXLTxd0ifjKwBrH/
         cv8gEX0xyYyZ000PPPFKnU5mbAqFebS3D/QCXZDkk2Q5lQbN2mHTVpPqijVAeWJ+Xalq
         XAsUKZ/GgIEUFKl2UdVBV9IktInnvmCNjhT1WjPMwBJ7WlnQNUDAw6zaQBjErr0QreGg
         cUZw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:mime-version:references
         :in-reply-to:message-id:date:subject:to:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=rXebNsqhivwapQAb6p+VYanz/i3/wuCTGcDfn3sdPYM=;
        b=mhLTiLCiv7tdK9stg+TgJukY91Bx3IHwa2aE/xukS3RmniV6EdF2A99a2KIZ9QNYtp
         +850mIvKZCeHqHeHwG1czscu7Aa0q2IMME3iL+rwH/koHfb0/b/ojhW+NdMT/LYmd/kQ
         rhXlM2/FscpdzGoPnPIX3ZYh8W/1S0HnVvjwXWOQNZkGtodsztUemNDBZmrb4DAIpql8
         0PgZxal6zPnLH/2MT9muHHdQwE+5frhodsqsH4Q/N3yGUfi3BE8QK375SZaiNPGGgiEU
         rIBGaGlPQKvPkaTsWIH84G5XA7gr+OhLKQjrQN35E0CDp3jsp7tPN42pAJ64Ui5WRiD6
         laUQ==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) smtp.mailfrom=thiago@macieira.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:in-reply-to:references:mime-version
         :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=rXebNsqhivwapQAb6p+VYanz/i3/wuCTGcDfn3sdPYM=;
        b=C4MDUEwCIo9jPjSBvvkdtykkaQxY8Ue+hLuofTXMDpAkm7NXG7DeZ7W6ph4m8SISH1
         7ycMOZO467h171Rql5CqTYQrci1oPs3FbW+DhBmy2jAA9FUNSN4ClJVmOyfBQtnp3X5w
         2oXuakjWBe/b3VU7pda4xKAG1rESiM9uKY2ffk/xEt2nSHjrK04EUxaQncfGDn8DQv4u
         4iWYhi4QSoTEEHOoQiundfa7Nyou6ix+ZTSuPmsDuERpqg01V78o1k2HmZKatLzMAXqG
         i0f+jEztVOlpkJ1Tp/MLxzeAuxNldSJ0G2W/+EaW71XPmeRr3BKMhZWevZCiFFsvIvAU
         0EDQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version: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=rXebNsqhivwapQAb6p+VYanz/i3/wuCTGcDfn3sdPYM=;
        b=PYdnN0CxsYO+H+XYXpUUJWexfkNclMKgN/AVD7WH7eSIKEBSa7ia6avRiz0e+3a2ET
         hf2GtsgF8SZaS7KmCsmBX67ETFwent+qE/e8CB6pQy1ApjPJlgPH84G7OMuwx5fF5a2b
         7g4MSM8M1G7f0H1HMEZMc3u7+OPGsV9UcjXzRR/kPPR4CtJKqwfnDDfgiIbRguC5zML0
         rFb5ikfOUYmBSC3dL1TmEm7SjZoWahr79+MIHs7Nj1IgOiVVucafPOZTzQghdP4DZeNu
         /2HmhawLqOBScn62ROIxc8irwz8LQmPTNOrxK2olPW0/464RCoPmiInreQKUo2pB4lzR
         AHkQ==
X-Gm-Message-State: AMCzsaUN+OkRhEU24DidLpxknOoWZos5myZz3UoNe6Dc672asG5snHam
	HJQjuDl3tsBxj01coSo1qI+amg==
X-Google-Smtp-Source: ABhQp+S2Eq3OxUO0czAdmK9eMipV/m6i7hZNOPsQtpaNA/zi39ffu3kptHgHlJY2XjTiRvRfp0M2IA==
X-Received: by 10.28.108.26 with SMTP id h26mr23137wmc.27.1509404256071;
        Mon, 30 Oct 2017 15:57:36 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.50.138 with SMTP id y132ls2111301wmy.9.gmail; Mon, 30 Oct
 2017 15:57:35 -0700 (PDT)
X-Received: by 10.28.137.193 with SMTP id l184mr211100wmd.24.1509404255081;
        Mon, 30 Oct 2017 15:57:35 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1509404255; cv=none;
        d=google.com; s=arc-20160816;
        b=SBOl5iLCjJofF2nKy+nj+bwwgVAAX2fbf74D4Pn9ugE1pN3DZGPboLFUQJjD+Jhp20
         8BHGkpbn2L3EsL3GeWlnlc8Yv2Ean2FzblC5QQeqPJRnBG1ogZT691zGKlHgD6Q0mOdH
         MmvfEhMRccR7I3vemWQ9Cptvdf3M9rRCjOLQ0wowbmsjevvtk4AVKYq2hunfqI0WxM3i
         UeQFFhGQQfgebUenAiTMQ25uQlRj1LsQGgyIepdy9oPAnkaZ7Z8wnmf9Z/iKwARL/uls
         UWx3nhpOvY+Mswl8i6Ov10zu3HQdUkWLOsVQG1WJOV2E/3cBQ073phCw2tQ9M1yZPel2
         /Wxw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from:arc-authentication-results;
        bh=HoK65hkw8DlpVSBoxFQu/jb9Cx32WEiPLhHhBLDot74=;
        b=nYouYbEZ7jpCe+LpXmowSrPe/HGGgturLYusLXRAV2scbpFcJ4q8GnGa6bQYe1lsnA
         RXPf925/FXfcFy5dQEY1e2RB9PcZtBMb2qvrJi90CIRDvcYVbftc/SmumdbRYSSUePi/
         FuECDqfjOpoviaa5TY0vlgTpvbUcrXLovmPZYSdDdJ4WT90UBAJZbnBQlrnwjWOIz7Oj
         TWKyIoZQ1BTGaohSu0eFMtoALI/PjBXBqrrfx2qMUwO2Kh1Id2KI0hL3CKCxPJMjfmDd
         oy+Kw6YibZdNmIpdRKbH9gh5Ybvk8k6Qnsk2Mztku4Ns2SKOcQX6j551ykcf1Ns2z7cE
         D/3w==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [2a01:4f8:d13:f81:21c:14ff:fe01:12a3])
        by mx.google.com with ESMTP id 29si36162wrz.280.2017.10.30.15.57.35
        for <std-proposals@isocpp.org>;
        Mon, 30 Oct 2017 15:57:35 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3 as permitted sender) client-ip=2a01:4f8:d13:f81:21c:14ff:fe01:12a3;
Original-Received: from tjmaciei-mobl1.localnet (jfdmzpr04-ext.jf.intel.com [134.134.139.73])
	by gondolin.macieira.info (Postfix) with ESMTPSA id B71CC11B610
	for <std-proposals@isocpp.org>; Mon, 30 Oct 2017 15:57:34 -0700 (PDT)
In-Reply-To: <f76f9a4c-1b06-4504-80fc-c34ac036e858@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2a01:4f8:d13:f81:21c:14ff:fe01:12a3
 as permitted sender) smtp.mailfrom=thiago@macieira.org
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:35164
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/35164>

On segunda-feira, 30 de outubro de 2017 13:04:33 PDT tower120@gmail.com wrote:
> Alright people, you convinced me.
> Move = just fast copy, and we should rely on compilers.
> Suggestion is closed.

There's still a merit to your suggestion. But you have to be clear on why it 
should be mandated.

The standard already mandates that the move should happen if:
 - the type can't be copied (deleted copy constructor)
 - the move constructor is noexcept but the copy one may throw

You'd like to enforce that if both are available and both won't throw (or both 
will), that the move constructor be called.

I think that's a reasonable ask. You just have to write good examples of which 
conditions would benefit from this. One of them is that copy constructors 
usually have more work to do. Just come up with a couple more cases.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
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/11351584.INmCtv91bl%40tjmaciei-mobl1.

.
