220 23719 <5697E9B1.9050507@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:32:17 +0100
Lines: 202
Approved: news@gmane.org
Message-ID: <5697E9B1.9050507@wanadoo.fr>
References: <569582E5.1040108@wanadoo.fr>
 <ace3ea5b-b960-4052-8080-72113810da75@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------070004050100070703020103"
X-Trace: ger.gmane.org 1452796350 8902 80.91.229.3 (14 Jan 2016 18:32:30 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 14 Jan 2016 18:32:30 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDH67CONY4PBBMWT362AKGQE4FNBHRI@isocpp.org Thu Jan 14 19:32:21 2016
Return-path: <std-proposals+bncBDH67CONY4PBBMWT362AKGQE4FNBHRI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f72.google.com ([209.85.215.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDH67CONY4PBBMWT362AKGQE4FNBHRI@isocpp.org>)
	id 1aJmh2-0006ba-0w
	for gclcip-std-proposals@m.gmane.org; Thu, 14 Jan 2016 19:32:20 +0100
Original-Received: by mail-lf0-f72.google.com with SMTP id k69sf55446062lfg.3
        for <gclcip-std-proposals@m.gmane.org>; Thu, 14 Jan 2016 10:32:19 -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: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=4TXQ5CM5tuqWXtKBXD+ghX6f0ky6xb6Yaw1rSvFpEYM=;
        b=aVhg0RUA2DUolB0bbHu1z86eVIFeFQj+C6RuuX/RE/76HJTVQCac0bGu6/OPHOVH9F
         gxZqp/pwubIstRTol1odw82kcKlQ7OhbtqTd+7Bak1JkkTp6pCcnbfW31rCdbu0iPSiJ
         YMg49ryqIxNBEBFIpd5RUyi/gUqBPOij8sxjrqSLnHygFunfBc5CXTYbcwGRIWessn4A
         Ma2Fv67kLqQazzxRTD3+PttxLnTagk63CuhnKvFXnEbLC6Cfuobm9hIl2U2VlqxjbsYO
         OqGdpP7t9jHRUDQzgYVRp1kbx/1Clngwq9QnSjg1WQpQpIU4+Yp+Trd7wobclyVOe247
         b/Zw==
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: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=4TXQ5CM5tuqWXtKBXD+ghX6f0ky6xb6Yaw1rSvFpEYM=;
        b=WuuO5ob8XsvPqPYxa2yLxiixEAATXxXOrm2YoKbbQk3J1GQ2ZboxOtqgZsXbItiMAR
         FQIkuUSOe/dlJvo4KVWL/w1ZYItzqaeH4RbZ+nTVXkzLcyHy1l3e/cabrLskSvetJLDm
         3e3X8CXPrRBMAJm1g3eK49vHVQZ5EnhgBFq4SX2T7TRORUkewcLb5VN5oUy7Xu0HwJDV
         HHu0neJzdLYTQI6O6nGmseXSjoZcEIQIozeeUQsJ0BtZdYv+FCRfBXnr0bQ0ffTMq8Fl
         9CowsJm2x2Krm60IibKtfH/JFkdevou/4tgw2PapkIQ6u6YseQsb3AcoLqjhcdcPcEcD
         HtpQ= 
X-Gm-Message-State: ALoCoQlePrVD8qb8oF74v4xTLDQdRu487UT17TximTvHuN++uSC4mc74E4T1i8yOoji39IYQYRsunuxgUHGNuzfBvzREzuCQhw==
X-Received: by 10.28.210.10 with SMTP id j10mr4364640wmg.2.1452796339530;
        Thu, 14 Jan 2016 10:32:19 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.215.210 with SMTP id o201ls403557wmg.6.gmail; Thu, 14 Jan
 2016 10:32:18 -0800 (PST)
X-Received: by 10.195.13.129 with SMTP id ey1mr5516697wjd.132.1452796338637;
        Thu, 14 Jan 2016 10:32:18 -0800 (PST)
Original-Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr. [80.12.242.128])
        by mx.google.com with ESMTPS id lk6si11371114wjb.21.2016.01.14.10.32.18
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=AES128-SHA bits=128/128);
        Thu, 14 Jan 2016 10:32:18 -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 5uYJ1s0024oBxcU03uYJ6y; Thu, 14 Jan 2016 19:32:18 +0100
X-ME-Helo: new-host.home
X-ME-Auth: dmljZW50ZS5ib3RldEB3YW5hZG9vLmZy
X-ME-Date: Thu, 14 Jan 2016 19:32:18 +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: <ace3ea5b-b960-4052-8080-72113810da75@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:23719
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/23719>

This is a multi-part message in MIME format.
--------------070004050100070703020103
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Le 14/01/2016 08:47, Andrzej Krzemie=C5=84ski a =C3=A9crit :
>
>
> W dniu wtorek, 12 stycznia 2016 23:49:14 UTC+1 u=C5=BCytkownik Vicente J.=
=20
> Botet Escriba napisa=C5=82:
>
>
>       Default|swap|/|hash_value|
>
>     Defining|swap|and|hash_value|P0029R0
>     <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0029r0.html=
>as
>     well as comparison operators, as proposed inN4475
>     <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4477.pdf>,
>     for simple classes is tedious, repetitive, slightly error-prone,
>     and easily automated.
>
>     Any comments are welcome,
>
> Hi Vicente,
> My intuition tells me that it would be beneficial to make it two=20
> separate proposals. I expect that swap and hash have different=20
> constraints, would rise different concerns, different discussions, and=20
> perhaps different outcomes as to whether include them or not. I can=20
> see that Howard only commented on the hash part. I, in contrast, will=20
> only comment on the swap part.
>
Ok, I will split it.
> I would add to the rationale for swap. Additional benefit for a=20
> default member-wise swap (rather than relying on the move-based)=20
> (apart from performance) is that the former can sometimes offer a=20
> better noexcept guarantee. E.g., for std::vector, swap can be always=20
> guaranteed to be noexcept, whereas its move operations throw.
>
You are right. I will add it.

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/.

--------------070004050100070703020103
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    <div class=3D"moz-cite-prefix">Le 14/01/2016 08:47, Andrzej
      Krzemie=C5=84ski a =C3=A9crit=C2=A0:<br>
    </div>
    <blockquote
      cite=3D"mid:ace3ea5b-b960-4052-8080-72113810da75@isocpp.org"
      type=3D"cite"><br>
      <br>
      W dniu wtorek, 12 stycznia 2016 23:49:14 UTC+1 u=C5=BCytkownik Vicent=
e
      J. Botet Escriba napisa=C5=82:
      <blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left:
        0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
        <div bgcolor=3D"#FFFFFF" text=3D"#000000">
          <h1 style=3D"margin:20px 0px
10px;padding:0px;font-weight:bold;font-size:28px;color:rgb(0,0,0);font-fami=
ly:Helvetica,arial,sans-serif;font-style:normal;font-variant:normal;letter-=
spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-s=
pace:normal;word-spacing:0px;background-color:rgb(255,255,255)">Default<spa=
n>=C2=A0</span><code
              style=3D"margin:0px 2px;padding:0px
              5px;white-space:nowrap;border:1px solid
rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3=
px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom=
-left-radius:3px;font-size:inherit">swap</code>/<code
              style=3D"margin:0px 2px;padding:0px
              5px;white-space:nowrap;border:1px solid
rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3=
px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom=
-left-radius:3px;font-size:inherit">hash_value</code></h1>
          <p style=3D"margin:15px
0px;color:rgb(0,0,0);font-family:Helvetica,arial,sans-serif;font-size:14px;=
font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:nor=
mal;text-align:start;text-indent:0px;text-transform:none;white-space:normal=
;word-spacing:0px;background-color:rgb(255,255,255)">Defining<span>=C2=A0</=
span><code
              style=3D"margin:0px 2px;padding:0px
              5px;white-space:nowrap;border:1px solid
rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3=
px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom=
-left-radius:3px">swap</code><span>=C2=A0</span>and<span>=C2=A0</span><code
              style=3D"margin:0px 2px;padding:0px
              5px;white-space:nowrap;border:1px solid
rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3=
px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom=
-left-radius:3px">hash_value</code><span>=C2=A0</span><a
              moz-do-not-send=3D"true"
href=3D"http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0029r0.htm=
l"
              title=3D"A Unified Proposal for Composable Hashing"
              style=3D"color:rgb(65,131,196)" target=3D"_blank"
              rel=3D"nofollow"
              onmousedown=3D"this.href=3D'http://www.google.com/url?q\75htt=
p%3A%2F%2Fwww.open-std.org%2Fjtc1%2Fsc22%2Fwg21%2Fdocs%2Fpapers%2F2015%2Fp0=
029r0.html\46sa\75D\46sntz\0751\46usg\75AFQjCNFMJPkwLPkD7E9erH9GNLsuGh7rzA'=
;return
              true;"
              onclick=3D"this.href=3D'http://www.google.com/url?q\75http%3A=
%2F%2Fwww.open-std.org%2Fjtc1%2Fsc22%2Fwg21%2Fdocs%2Fpapers%2F2015%2Fp0029r=
0.html\46sa\75D\46sntz\0751\46usg\75AFQjCNFMJPkwLPkD7E9erH9GNLsuGh7rzA';ret=
urn
              true;">P<wbr>0029R0</a><span>=C2=A0</span>as well as comparis=
on
            operators, as proposed in<span>=C2=A0</span><a
              moz-do-not-send=3D"true"
              href=3D"http://www.open-std.org/jtc1/sc22/wg21/docs/papers/20=
15/n4477.pdf"
              title=3D"Default comparisons (R2)"
              style=3D"color:rgb(65,131,196)" target=3D"_blank"
              rel=3D"nofollow"
              onmousedown=3D"this.href=3D'http://www.google.com/url?q\75htt=
p%3A%2F%2Fwww.open-std.org%2Fjtc1%2Fsc22%2Fwg21%2Fdocs%2Fpapers%2F2015%2Fn4=
477.pdf\46sa\75D\46sntz\0751\46usg\75AFQjCNGfPWSu84Bha502jWe_nTBMyuGcAQ';re=
turn
              true;"
              onclick=3D"this.href=3D'http://www.google.com/url?q\75http%3A=
%2F%2Fwww.open-std.org%2Fjtc1%2Fsc22%2Fwg21%2Fdocs%2Fpapers%2F2015%2Fn4477.=
pdf\46sa\75D\46sntz\0751\46usg\75AFQjCNGfPWSu84Bha502jWe_nTBMyuGcAQ';return
              true;">N4475</a>, for simple classes is tedious,
            repetitive, slightly error-prone, and easily automated.<span>
              <br>
            </span></p>
          <p style=3D"margin:15px
0px;color:rgb(0,0,0);font-family:Helvetica,arial,sans-serif;font-size:14px;=
font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:nor=
mal;text-align:start;text-indent:0px;text-transform:none;white-space:normal=
;word-spacing:0px;background-color:rgb(255,255,255)"><span>
              Any comments are welcome,<br>
            </span></p>
        </div>
      </blockquote>
      <div>Hi Vicente,<br>
        My intuition tells me that it would be beneficial to make it two
        separate proposals. I expect that swap and hash have different
        constraints, would rise different concerns, different
        discussions, and perhaps different outcomes as to whether
        include them or not. I can see that Howard only commented on the
        hash part. I, in contrast, will only comment on the swap part.<br>
        <br>
      </div>
    </blockquote>
    Ok, I will split it.<br>
    <blockquote
      cite=3D"mid:ace3ea5b-b960-4052-8080-72113810da75@isocpp.org"
      type=3D"cite">
      <div>I would add to the rationale for swap. Additional benefit for
        a default member-wise swap (rather than relying on the
        move-based) (apart from performance) is that the former can
        sometimes offer a better noexcept guarantee. E.g., for
        std::vector, swap can be always guaranteed to be noexcept,
        whereas its move operations throw.<br>
        <br>
      </div>
    </blockquote>
    You are right. I will add it.<br>
    <br>
    Vicente<br>
  </body>
</html>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"https://groups.google.com/a/isocpp.org/group=
/std-proposals/">https://groups.google.com/a/isocpp.org/group/std-proposals=
/</a>.<br />

--------------070004050100070703020103--

.
