220 23721 <5697EAD8.8080104@wanadoo.fr> article
Path: news.gmane.org!not-for-mail
From: "Vicente J. Botet Escriba" <vicente.botet@wanadoo.fr>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Default swap/hash_value
Date: Thu, 14 Jan 2016 19:37:12 +0100
Lines: 34
Approved: news@gmane.org
Message-ID: <5697EAD8.8080104@wanadoo.fr>
References: <569582E5.1040108@wanadoo.fr>
 <2ca0a385-6399-4ac3-ba0d-609628ea4ec6@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1452796643 13841 80.91.229.3 (14 Jan 2016 18:37:23 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 14 Jan 2016 18:37:23 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDH67CONY4PBBWOV362AKGQEUPGTUYQ@isocpp.org Thu Jan 14 19:37:15 2016
Return-path: <std-proposals+bncBDH67CONY4PBBWOV362AKGQEUPGTUYQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f69.google.com ([74.125.82.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDH67CONY4PBBWOV362AKGQEUPGTUYQ@isocpp.org>)
	id 1aJmlm-0001o1-9w
	for gclcip-std-proposals@m.gmane.org; Thu, 14 Jan 2016 19:37:14 +0100
Original-Received: by mail-wm0-f69.google.com with SMTP id r131sf107844809wma.1
        for <gclcip-std-proposals@m.gmane.org>; Thu, 14 Jan 2016 10:37:14 -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:content-type: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=SneCpillc/JfZeL4dagUaN75zsjnNiJEzahK+bXJqg0=;
        b=MnQ80ixe3qfT5+MuERY4udnd2Je+Ah+ffcTGO6dDE7oi1eYVGxLpihgr3quAnXGRXn
         Aurrrk70mQj0QpmOU/F6p9s18MAUqXu2UEW1gLJL5FkB2QE+nlGb33+eihaNmEDCqb4E
         9R5FGPAUC3PO9fcPJ+fDKkNpbvqZu6AI8XuTlcNfQU3SZYOjtwC6mGWZlwzqICyOxur1
         KNRRg2Ln7dgkj55IbC+o4Lzcz1Aoz3uvdEOICwsqvgSOPp8TaU+JPrhNG132krJP18mR
         jrjVrryEKaliBWs43WPXnpTUyAD5mNuDBNIppwnDN/XabRdrC14MPeYpBuQ0D 
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:subject:to:references:from:message-id:date
         :user-agent:mime-version:in-reply-to:content-type
         :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=SneCpillc/JfZeL4dagUaN75zsjnNiJEzahK+bXJqg0=;
        b=k2KvNW1kKHoRK6oMSo7YlMQ24Yd/kxc7XTm+Coq/EQsNLWwkjwJDYBVxxStX8GO4cs
         EfCCm1xeZ3Exh0ReKobQUElXhHpQ+cO0O4KRCB8P7HqJWcfW7K2fvh0PR8jm+hRbAHVU
         nCwS7HJuLTGCBOHV2dqG5L7MlFtHlCRuiuNfmcyTqctoJy4A5ilZW9z+2Y6Vd3DxyxYT
         plR6oNHZPhEyp1clEqJyecVe8fvORIlgoKE2E9Ddmz4FrDsVga/fxb1+gW4WSCor/aSm
         gbhVI+tkKvNnM0sQ3PTVyor3b/HyDInp18kFwCo3sqiGkJN 
X-Gm-Message-State: ALoCoQmle1LzVzNwZiHMf9251dC4MdgQ207E/11wu0S3yACMqmqE+Jeoo3s6WbWT27dyKQrRkGRDHVpdKLnuZWASQCsFvh2+hw==
X-Received: by 10.28.172.194 with SMTP id v185mr4350621wme.5.1452796633776;
        Thu, 14 Jan 2016 10:37:13 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.54.17 with SMTP id d17ls1152695wma.0.canary; Thu, 14 Jan
 2016 10:37:12 -0800 (PST)
X-Received: by 10.28.153.3 with SMTP id b3mr6809779wme.7.1452796632867;
        Thu, 14 Jan 2016 10:37:12 -0800 (PST)
Original-Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr. [80.12.242.128])
        by mx.google.com with ESMTPS id m2si11403453wje.1.2016.01.14.10.37.12
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=AES128-SHA bits=128/128);
        Thu, 14 Jan 2016 10:37:12 -0800 (PST)
Received-SPF: neutral (google.com: 80.12.242.128 is neither permitted nor denied by best guess record for domain of vicente.botet@wanadoo.fr) client-ip=80.12.242.128;
Original-Received: from new-host.home ([92.139.160.222])
	by mwinf5d64 with ME
	id 5udC1s00B4oBxcU03udCvb; Thu, 14 Jan 2016 19:37:12 +0100
X-ME-Helo: new-host.home
X-ME-Auth: dmljZW50ZS5ib3RldEB3YW5hZG9vLmZy
X-ME-Date: Thu, 14 Jan 2016 19:37:12 +0100
X-ME-IP: 92.139.160.222
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0)
 Gecko/20100101 Thunderbird/38.4.0
In-Reply-To: <2ca0a385-6399-4ac3-ba0d-609628ea4ec6@isocpp.org>
X-Original-Sender: vicente.botet@wanadoo.fr
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 80.12.242.128 is neither permitted nor denied by best guess
 record for domain of vicente.botet@wanadoo.fr) smtp.mailfrom=vicente.botet@wanadoo.fr
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: 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:23721
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/23721>

Le 14/01/2016 16:59, Tomasz a =C3=A9crit :
> I have a comment regarding a restricting generation of swap only in=20
> situation when it would be noexcept:
> If I the memberwise swap would not be generated, then I assume normal=20
> std::swap (3xmove) would be used instead. And if the member has=20
> throwing swap, then it would also have throwing move, so std::swap=20
> would also throw in this situation.
> However, the std::swap will invoke move for other members of given=20
> class, that may be noexcept swapable but not noexcept moveable (same=20
> implementation of std::list), so the only outcome of avoiding=20
> generation of possibly throwing swap, would be use of swap that is=20
> less efficient and can throw in more cases.
Ok, I see. I'll remove the restriction.
>
> Also language embraced throwing swap, by introduction of=20
> is_noexcept_swappable, so I think swap should be generated regardless=20
> of noexcept of member swap function, but have automatic noexcept=20
> specification (like other generated member functions).

and add the noexcept expression.

Vicente

--=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 https://groups.google.com/a/isocpp.org/group/std-propos=
als/.

.
