220 3010 <CA+Acj4eSL=OgPx4hT30QbUzW0J+r1wBCwoVXddp-Qu2-2aSERw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: "Andrew C. Morrow" <andrew.c.morrow@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: A proposal to add swap traits to the standard library
Date: Wed, 6 Mar 2013 10:36:00 -0500
Lines: 145
Approved: news@gmane.org
Message-ID: <CA+Acj4eSL=OgPx4hT30QbUzW0J+r1wBCwoVXddp-Qu2-2aSERw@mail.gmail.com>
References: <CA+Acj4fnCPDP2wPVts1B4Zaz6xzZ899=A=6ShTUqw_Ep5gN7pg@mail.gmail.com>
	<713d1419-a642-408c-b3ba-44d1a17c2bb8@isocpp.org>
	<511227BD.9010306@gmail.com>
	<536643f8-e7bd-447c-8515-6829c42f8425@isocpp.org>
	<51127060.7010505@gmail.com>
	<f8e4cfdd-2ece-45a5-82cc-bf9f15549663@isocpp.org>
	<8AB4D2A8-9E07-47C9-9F72-E5DD6D11B1FA@gmail.com>
	<5115987B.5000507@gmail.com>
	<CAOHCbiuW5btLmAWUay+hf9qmbj-FDPs0N+AO7R+q2+Su3r+94Q@mail.gmail.com>
	<778ABE6B-77D6-4349-BAC4-0AECA1F62CA0@gmail.com>
	<CA+Acj4ciCWNZMhEdL7QRDFieLu7g=P9_-8DWx_FXm_9OkSGOeQ@mail.gmail.com>
	<d6ebe390-e1f8-4cb4-b71a-81d9b06596f5@isocpp.org>
	<CA+Acj4ft_5NaSQQsksMRgfXAGW3e-sCLTHK-CaipWPdc6RxwQA@mail.gmail.com>
	<51346F80.9030700@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=bcaec54eea70dba85004d7435858
X-Trace: ger.gmane.org 1362584162 26684 80.91.229.3 (6 Mar 2013 15:36:02 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 6 Mar 2013 15:36:02 +0000 (UTC)
Cc: std-proposals@isocpp.org
To: =?ISO-8859-1?Q?Mikael_Kilpel=E4inen?= <mikael.kilpelainen@gmail.com>
Original-X-From: std-proposals+bncBDDP5Z6JXQHBBYOE3WEQKGQE2ZP3AWA@isocpp.org Wed Mar 06 16:36:25 2013
Return-path: <std-proposals+bncBDDP5Z6JXQHBBYOE3WEQKGQE2ZP3AWA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ee0-f70.google.com ([74.125.83.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDDP5Z6JXQHBBYOE3WEQKGQE2ZP3AWA@isocpp.org>)
	id 1UDGOG-0002kx-7y
	for gclcip-std-proposals@m.gmane.org; Wed, 06 Mar 2013 16:36:24 +0100
Original-Received: by mail-ee0-f70.google.com with SMTP id l10sf11396447eei.9
        for <gclcip-std-proposals@m.gmane.org>; Wed, 06 Mar 2013 07:36:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-received:x-beenthere:x-received:received-spf:mime-version
         :x-received:in-reply-to:references:date:message-id:subject:from:to
         :cc:x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-google-group-id:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe:content-type;
        bh=8w0B5ubtps3MdCc63XWUgjcgvjY5rgz0u253lunS1Nk=;
        b=YESCRObv879UHPmmKptZLqZyo7K5DDZBzDujqrBGqfeeSvoBHYeAGwcto+k397Kex4
         R5owkUvXkJ7aweIGiYpKgv8KxOlEv4VSdPAAxgr2BOHJ6On88JrHkA4AClAXaGkkruEj
         Mct0y/g7D+dXs1hK71Jn7ft2xiXjLUuRWK25qlGtOk6qKzD50U23Xq3X0MHCtkvgVKeZ
         jlfKlyPK1eMbeLOT5WQI84HoUluFmNP8qNnUZCFHKf/w5gYlrpCQ/wjO+wGgTWK6wICn
         To6wse6gwgvHxAbv4ccUB9FWb6UFNMm8D50hOHUsuhV604m6XhI/FgxSdYjBHlTeETS 
X-Received: by 10.112.10.36 with SMTP id f4mr386054lbb.7.1362584162294;
        Wed, 06 Mar 2013 07:36:02 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.122.43 with SMTP id lp11ls207712lab.4.gmail; Wed, 06 Mar
 2013 07:36:01 -0800 (PST)
X-Received: by 10.112.40.167 with SMTP id y7mr7815336lbk.12.1362584160850;
        Wed, 06 Mar 2013 07:36:00 -0800 (PST)
Original-Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174])
        by mx.google.com with ESMTPS id l3si11935204lbb.105.2013.03.06.07.36.00
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 06 Mar 2013 07:36:00 -0800 (PST)
Received-SPF: pass (google.com: domain of andrew.c.morrow@gmail.com designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174;
Original-Received: by mail-lb0-f174.google.com with SMTP id l12so5799380lbo.33
        for <std-proposals@isocpp.org>; Wed, 06 Mar 2013 07:36:00 -0800 (PST)
X-Received: by 10.152.109.112 with SMTP id hr16mr25561222lab.38.1362584160412;
 Wed, 06 Mar 2013 07:36:00 -0800 (PST)
Original-Received: by 10.112.80.67 with HTTP; Wed, 6 Mar 2013 07:36:00 -0800 (PST)
In-Reply-To: <51346F80.9030700@gmail.com>
X-Original-Sender: andrew.c.morrow@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of andrew.c.morrow@gmail.com designates 209.85.217.174 as permitted
 sender) smtp.mail=andrew.c.morrow@gmail.com;       dkim=pass header.i=@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: <http://groups.google.com/a/isocpp.org/group/std-proposals/post?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:3010
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/3010>

--bcaec54eea70dba85004d7435858
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Mon, Mar 4, 2013 at 4:55 AM, Mikael Kilpel=E4inen <
mikael.kilpelainen@gmail.com> wrote:

>
>    Looking good, I will take closer look when I have time but small
> remark now..
>
>
> "The context in which the aforementioned expressions are considered shall
> ensure that a candidate set for swap consists of the two swap function
> templates defined in <utility> (20.2) and the lookup set produced by
> argument-dependent lookup (3.4.2)."
>
> I assume this means one has to explicitly include <utility> when ever
> these traits are used.
> Then the wording seems bit  vague though, how do I ensure those swap
> functions will be candidates if I don't know how it is implemented?
> I would rather see something like "if the header <utility> is not include=
d
> prior to a use of these traits the program is ill-formed".
>
> Another option would be to specify that the new header includes <utility>
> which i think is fine, in which case that needs to be added to the synops=
is.
>
>
> Mikael
>
>
Thanks Mikael.

Your suggestion to just specify that <utility> is included by the new
header seems better to me. The alternative just introduces yet another way
to write an ill-formed program. I've updated the <swap_traits> synopsis
accordingly.

While doing so I realized that some of the section references, names, and
titles were made incorrect after changing from Table 51 to Table 49, so
I've fixed those up too.

http://acmorrow.github.com/swap_traits/nXXXX.html

Andrew

--=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 http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/?hl=3Den.



--bcaec54eea70dba85004d7435858
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><br><div class=3D"gmail=
_quote">On Mon, Mar 4, 2013 at 4:55 AM, Mikael Kilpel=E4inen <span dir=3D"l=
tr">&lt;<a href=3D"mailto:mikael.kilpelainen@gmail.com" target=3D"_blank">m=
ikael.kilpelainen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex">
 =20
   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000"><div class=3D"im"><br><blockquo=
te type=3D"cite">
      <div dir=3D"ltr">
        <div>
        </div>
      </div>
     =20
    </blockquote></div>
    Looking good, I will take closer look when I have time but small
    remark now..<div class=3D"im"><br>
    <br>
    &quot;The context in which the aforementioned expressions are considere=
d
    shall ensure that a candidate set for swap consists of the two swap
    function templates defined in &lt;utility&gt; (20.2) and the lookup
    set produced by argument-dependent lookup (3.4.2).&quot;<br>
    <br></div>
    I assume this means one has to explicitly include &lt;utility&gt;
    when ever these traits are used. <br>
    Then the wording seems bit=A0 vague though, how do I ensure those swap
    functions will be candidates if I don&#39;t know how it is implemented?=
<br>
    I would rather see something like &quot;if the header &lt;utility&gt; i=
s
    not included prior to a use of these traits the program is
    ill-formed&quot;.<br>
    <br>
    Another option would be to specify that the new header includes
    &lt;utility&gt; which i think is fine, in which case that needs to
    be added to the synopsis.<span class=3D""><font color=3D"#888888"><br>
    <br>
    <br>
    Mikael<br>
    <br>
  </font></span></div>

</blockquote></div><br></div><div class=3D"gmail_extra"><div class=3D"gmail=
_extra">Thanks Mikael.</div><div class=3D"gmail_extra"><br></div><div class=
=3D"gmail_extra">Your suggestion to just specify that &lt;utility&gt; is in=
cluded by the new header seems better to me. The alternative just introduce=
s yet another way to write an ill-formed program. I&#39;ve updated the &lt;=
swap_traits&gt; synopsis accordingly.</div>
<div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">While doing=
 so I realized that some of the section references, names, and titles were =
made incorrect after changing from Table 51 to Table 49, so I&#39;ve fixed =
those up too.</div>
<div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra"><a href=3D"=
http://acmorrow.github.com/swap_traits/nXXXX.html">http://acmorrow.github.c=
om/swap_traits/nXXXX.html</a></div><div class=3D"gmail_extra"><br></div><di=
v class=3D"gmail_extra">
Andrew</div></div></div>

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

--bcaec54eea70dba85004d7435858--

.
