Topic: D0197R0- Default Tuple-like access proposal - last


Author: "Vicente J. Botet Escriba" <vicente.botet@wanadoo.fr>
Date: Sat, 23 Jan 2016 18:25:55 +0100
Raw View
This is a multi-part message in MIME format.
--------------050502000805070803080905
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi,

I've tried to add some wording to the proposal. For those that are not
aware of the proposal, here it is the abstract

    Defining tuple-like
    access|tuple_size|,|tuple_element|and|get<I>/get<T>|as comparison
    operators, as proposed inN4475
    <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4475.pdf>,
    for simple classes is tedious, repetitive, slightly error-prone, and
    easily automated.

    I propose to (implicitly) supply default version of these operation
    and traits, if needed. The meaning|get<I>|is to return a reference
    to the I^th member.


You can find the last version of Default Tuple-like access at [1].

Any comment are really welcome.

Vicente

[1]
https://github.com/viboes/std-make/blob/master/doc/proposal/reflection/P0197R0.md

--

---
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.
Visit this group at https://groups.google.com/a/isocpp.org/group/std-proposals/.

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

<html>
  <head>

    <meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-8=
">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    <font size=3D"+1">Hi,<br>
      <br>
    </font><font size=3D"+1">I've tried to add some wording to the
      proposal. For those that are not aware of the proposal, here it is
      the abstract<br>
    </font><br>
    <blockquote>
      <p style=3D"-webkit-print-color-adjust: exact; 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: normal; orphans: auto;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: auto; word-spacing: 0px;
        -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
        255);">Defining tuple-like access<span
          class=3D"Apple-converted-space">=C2=A0</span><code
          style=3D"-webkit-print-color-adjust: exact; 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: 3px; border-top-right-radius: 3px;
          border-bottom-right-radius: 3px; border-bottom-left-radius:
          3px;">tuple_size</code>,<span class=3D"Apple-converted-space">=C2=
=A0</span><code
          style=3D"-webkit-print-color-adjust: exact; 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: 3px; border-top-right-radius: 3px;
          border-bottom-right-radius: 3px; border-bottom-left-radius:
          3px;">tuple_element</code><span class=3D"Apple-converted-space">=
=C2=A0</span>and<span
          class=3D"Apple-converted-space">=C2=A0</span><code
          style=3D"-webkit-print-color-adjust: exact; 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: 3px; border-top-right-radius: 3px;
          border-bottom-right-radius: 3px; border-bottom-left-radius:
          3px;">get&lt;I&gt;/get&lt;T&gt;</code><span
          class=3D"Apple-converted-space">=C2=A0</span>as comparison operat=
ors,
        as proposed in<span class=3D"Apple-converted-space">=C2=A0</span><a
          href=3D"http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n=
4475.pdf"
          title=3D"Default comparisons (R2)"
          style=3D"-webkit-print-color-adjust: exact; color: rgb(65, 131,
          196);">N4475</a>, for simple classes is tedious, repetitive,
        slightly error-prone, and easily automated.<span
          class=3D"Apple-converted-space">=C2=A0</span></p>
      I propose to (implicitly) supply default version of these
      operation and traits, if needed. The meaning<span
        class=3D"Apple-converted-space">=C2=A0</span><code
        style=3D"-webkit-print-color-adjust: exact; 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: 3px; border-top-right-radius: 3px;
        border-bottom-right-radius: 3px; border-bottom-left-radius:
        3px;">get&lt;I&gt;</code><span class=3D"Apple-converted-space">=C2=
=A0</span>is
      to return a reference to the I<sup
        style=3D"-webkit-print-color-adjust: exact; font-size: 0.83em;
        vertical-align: super; line-height: 0;">th</sup>member.<br>
    </blockquote>
    <p style=3D"-webkit-print-color-adjust: exact; 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: normal; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);"><br>
    </p>
    <font size=3D"+1">You can find the last version of Default Tuple-like
      access at [1].</font><br>
    <font size=3D"+1">=C2=A0<br>
      Any comment are really welcome.<br>
      <br>
      Vicente<br>
      <br>
      [1]
<a class=3D"moz-txt-link-freetext" href=3D"https://github.com/viboes/std-ma=
ke/blob/master/doc/proposal/reflection/P0197R0.md">https://github.com/viboe=
s/std-make/blob/master/doc/proposal/reflection/P0197R0.md</a><br>
    </font>
  </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 />

--------------050502000805070803080905--

.