Topic: D0198R0- Default Swap proposal - last revision


Author: Tomasz <tomaszkam@gmail.com>
Date: Sun, 24 Jan 2016 12:19:46 -0800 (PST)
Raw View
------=_Part_287_641113003.1453666786159
Content-Type: multipart/alternative;
 boundary="----=_Part_288_227259364.1453666786159"

------=_Part_288_227259364.1453666786159
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I think you still have 2 unintended references to oprator=3D=3D in swap=20
porposal. In the Motivation section:
If Default comparison N4475=20
<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4475.pdf> is=20
adopted, the =3D=3D operator will be not needed anymore as it could be=20
generated by default as =3D operator is already.
And in proposal:
Note that if =3D=3D operator is defined by the user, swap default generatio=
n=20
couldn't reflect the user decisions, and so it seems reasonable to don't=20
provide such a generation.=20

W dniu sobota, 23 stycznia 2016 18:25:59 UTC+1 u=C5=BCytkownik Vicente J. B=
otet=20
Escriba napisa=C5=82:
>
> Hi,
>
> I've finally separated the Default swap-hash original proposal as suggest=
=20
> in this ML [1]. Clearly the conditions are not the same at all.=20
> For those that are not aware of the proposal, here it is the abstract
>
> Defining swap as copy/move constructor/assignment operators, for simple=
=20
> classes is tedious, repetitive, slightly error-prone, and easily automate=
d.
>
> I propose to (implicitly) supply default version of this operation by the=
=20
> compiler, if needed. The meaning swap is to swap each member.
>
>
>
>
> You can find the last version of Default Swap at [1].
> =20
> Any comment are really welcome.
> Vicente
>
> [1]=20
> https://github.com/viboes/std-make/blob/master/doc/proposal/reflection/P0=
198R0.md
>
>
>

--=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/.

------=_Part_288_227259364.1453666786159
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I think you still have 2 unintended references to oprator=
=3D=3D in swap porposal. In the Motivation section:<br><div style=3D"margin=
-left: 40px;">If Default comparison <a href=3D"http://www.open-std.org/jtc1=
/sc22/wg21/docs/papers/2015/n4475.pdf" title=3D"Default comparisons (R2)">N=
4475</a> is adopted, the <code>=3D=3D</code> operator will be not needed an=
ymore as it could be generated by default as <code>=3D</code> operator is a=
lready.<br></div>And in proposal:<br><div style=3D"margin-left: 40px;">Note=
 that if <code>=3D=3D</code> operator is defined by the user,  <code>swap</=
code> default generation couldn&#39;t reflect the user decisions, and so it=
 seems reasonable to don&#39;t provide such a generation. <br></div><br>W d=
niu sobota, 23 stycznia 2016 18:25:59 UTC+1 u=C5=BCytkownik Vicente J. Bote=
t 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;">
 =20

   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000">
    <font size=3D"+1">Hi,<br>
      <br>
    </font><font size=3D"+1">I&#39;ve finally separated the Default swap-ha=
sh
      original proposal as suggest in this ML [1]. Clearly the
      conditions are not the same at all. </font><br>
    <font size=3D"+1"><font size=3D"+1">For those that are not aware of the
        proposal, here it is the abstract<br>
        <br>
      </font></font>
    <blockquote><font size=3D"+1"><font size=3D"+1">Defining swap as
          copy/move constructor/assignment operators, for simple classes
          is tedious, repetitive, slightly error-prone, and easily
          automated.</font></font><br>
      <br>
      <font size=3D"+1"><font size=3D"+1">I propose to (implicitly) supply
          default version of this operation by the compiler, if needed.
          The meaning swap is to swap each member.</font></font><br>
    </blockquote>
    <font size=3D"+1"><font size=3D"+1"><br>
        <br>
      </font></font><br>
    <font size=3D"+1"><font size=3D"+1">You can find the last version of
        Default Swap at [1].</font><br>
      <font size=3D"+1">=C2=A0<br>
        Any comment are really welcome.</font><br>
      Vicente<br>
      <br>
      [1]
<a href=3D"https://github.com/viboes/std-make/blob/master/doc/proposal/refl=
ection/P0198R0.md" target=3D"_blank" rel=3D"nofollow" onmousedown=3D"this.h=
ref=3D&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fviboes=
%2Fstd-make%2Fblob%2Fmaster%2Fdoc%2Fproposal%2Freflection%2FP0198R0.md\46sa=
\75D\46sntz\0751\46usg\75AFQjCNGD6enCkph7Ag1HsD1fENihtQo1Qw&#39;;return tru=
e;" onclick=3D"this.href=3D&#39;https://www.google.com/url?q\75https%3A%2F%=
2Fgithub.com%2Fviboes%2Fstd-make%2Fblob%2Fmaster%2Fdoc%2Fproposal%2Freflect=
ion%2FP0198R0.md\46sa\75D\46sntz\0751\46usg\75AFQjCNGD6enCkph7Ag1HsD1fENiht=
Qo1Qw&#39;;return true;">https://github.com/viboes/std-<wbr>make/blob/maste=
r/doc/proposal/<wbr>reflection/P0198R0.md</a><br>
      <br>
      <br>
    </font>
  </div>

</blockquote></div>

<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 />

------=_Part_288_227259364.1453666786159--
------=_Part_287_641113003.1453666786159--

.