220 30783 <e2d22969-1510-448f-acfd-44e421fc300b@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: TONGARI J <tongari95@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Make Typedef Great Again
Date: Sun, 5 Feb 2017 17:48:15 -0800 (PST)
Lines: 367
Approved: news@gmane.org
Message-ID: <e2d22969-1510-448f-acfd-44e421fc300b@isocpp.org>
References: <cfbe556f-214a-4245-b257-f746424c63f2@isocpp.org>
 <b1ae66d2-da65-bd04-6ac0-8bed1d13c5c5@wanadoo.fr>
 <fc42405f-b5de-492a-9e7e-e191a6dd975c@isocpp.org>
 <63e10ea7-0878-cc71-743f-745d21dd93c8@wanadoo.fr>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_5100_1198539314.1486345695550"
X-Trace: blaine.gmane.org 1486345697 5657 195.159.176.226 (6 Feb 2017 01:48:17 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Mon, 6 Feb 2017 01:48:17 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCC3NA775MLBBYFL37CAKGQET3MXHTQ@isocpp.org Mon Feb 06 02:48:13 2017
Return-path: <std-proposals+bncBCC3NA775MLBBYFL37CAKGQET3MXHTQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-it0-f72.google.com ([209.85.214.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCC3NA775MLBBYFL37CAKGQET3MXHTQ@isocpp.org>)
	id 1caYPc-0001FA-N9
	for gclcip-std-proposals@m.gmane.org; Mon, 06 Feb 2017 02:48:13 +0100
Original-Received: by mail-it0-f72.google.com with SMTP id 203sf69336833ith.3
        for <gclcip-std-proposals@m.gmane.org>; Sun, 05 Feb 2017 17:48:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=88AdHeepPw0ndG6Ddqh26jLdpGqS0khNz3G0bLK70CA=;
        b=iIEIRRFVidoC3kLRMvPXQBT/AXH65KJkt2OCO+HBZ5Q/oS2FjWAoWgsQzclvbEBrHi
         y3I6JekJuCcEGtlVtI8DkjhpwMfsbwWVi/+ZnUZgf7fs1latodsQrElu6JZNU6D60705
         TrFqVkhq3b0dhEj8wlIlV/GWqkCpATcMoK7AWus3U+IPKWMbX9BNBnR2FTEfkMXklcM0
         5kb/WT4rVfNGkJwf9B07Sul581sPoITWUAlHQvN6J735rrprIrF5ptTRk/colnjOuF4M
         b+yZdISAKVPIrSzAj5OE7jQyLK1HzVmCyKsHiUoWoD5Ke9m0bDuw5plpn+EyEziQCXwe
         vlhA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=88AdHeepPw0ndG6Ddqh26jLdpGqS0khNz3G0bLK70CA=;
        b=LPAMIMiZHRVdbH2/TSTsFpPkhDY4b30zuSy9oJBuuU9fDAGVMCUenj3LO5NDr8hUnm
         /AKKhkGl3ji6k7k7Fk/KSXCpE9WXHoXwiqeMwEUB+oKWS8vfRlUxTq1LM6Va7ORDe5D1
         UCgw2zZdRYqioH7hiyUtaQIJnavZddMlc5EAsu4z90FZlDsqlAjO3Qu9yrH71gxBcT+l
         tei6UY4btc4jeNAc7zzaFZeATd/ARGkZpo9+HBzfCMWaLPW7yDPARssbrYXbnZm+auKc
         tO+NruMxd3mD5jashFBihE1Bj3p8Vpe7UOhbtRf6XMHfZertGGq778zoeKx5wBEWOZAR
         rnUw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=88AdHeepPw0ndG6Ddqh26jLdpGqS0khNz3G0bLK70CA=;
        b=BhWXT8whRlgd0gy0ri0a43fy2qrSJzAqKDvKClAbGZvlzNnXZfkRhIZi9JB5j+Avt3
         vmGPN3kvpXLuaY8NE+weYxqGwouDkYyNK2hzHyj1suXsT2Moj0AOyKVAVZ68LvZjbrKC
         3YEHAEQ+V7VLNjZye0HEnlqnRoG1UDDHVeoSmIBxbJrWIIVgGg9Z7REA2FE3gG9gD4Jh
         oWul5HyLhTBsyrIXF50/UouhC7HDXS7TrkWJQ135I/HacTo7kMcKTJ9dJn7IK5mtKENv
         5cyUYUB9FYKQg1DsoIV8mj9/5aUSPbkRgQimVd40KfnXxAYY0pvzhZPODa+j8sEx5Hce
         79fA==
X-Gm-Message-State: AMke39l9U/TkJkpQbJvipVgy+2zLt5FE5uZ+weG4tIy3woBnziUqHYVLqM9T8vms0Oybxg==
X-Received: by 10.107.140.22 with SMTP id o22mr1775728iod.54.1486345697798;
        Sun, 05 Feb 2017 17:48:17 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.1.212 with SMTP id e78ls11457714ote.9.gmail; Sun, 05 Feb
 2017 17:48:16 -0800 (PST)
X-Received: by 10.157.43.215 with SMTP id u81mr378711ota.15.1486345696258;
        Sun, 05 Feb 2017 17:48:16 -0800 (PST)
In-Reply-To: <63e10ea7-0878-cc71-743f-745d21dd93c8@wanadoo.fr>
X-Original-Sender: tongari95@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: <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:30783
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/30783>

------=_Part_5100_1198539314.1486345695550
Content-Type: multipart/alternative; 
	boundary="----=_Part_5101_1188588797.1486345695551"

------=_Part_5101_1188588797.1486345695551
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Sunday, February 5, 2017 at 10:17:51 PM UTC+8, Vicente J. Botet Escriba=
=20
wrote:
>
> Le 05/02/2017 =C3=A0 13:56, TONGARI J a =C3=A9crit :
>
> On Sunday, February 5, 2017 at 6:41:36 PM UTC+8, Vicente J. Botet Escriba=
=20
> wrote: =20
>>
>> I'm not saying the feature is not needed. I believe however that the=20
>> proposal needs to compare what it is currently doable.
>>
>> Couldn't we use the existing language already
>>
>> template<blahblah..., typename T =3D typename MetaFunc<blahblah...>::typ=
e >
>> T f() // yay!
>> {
>>     // Use `T` from now on...
>> }
>>
>> In this case, it's just an alternative w/o (ab)using the template param,=
=20
> like how concept-lite tries to eliminate enable_if trick.
>
> Maybe. I'd prefer to have the possibility to use the result type as e.g.=
=20
> decltype(return).
>

I have no problem with decltype(return), but it's a specific solution to a=
=20
single case. If we could have a general solution to all similar cases, I'd=
=20
pursue it.

> =20
>
>> template<blahblah..., typename Base=3Dtypename MetaFunc<blahblah...>::ty=
pe>
>> class Derived : public Base // yay!
>> {
>>     // Use `Base` from now on...
>> }
>>
> =20
> This does not work if "blahblah...", is actually a template parameter=20
> pack, which has to be the last one.
>
> Right. This are the kind of cases you mush show on your proposal, the=20
> cases that cannot be solved with the current languages.
>
> I mean something like:
> template<class... Args>
> void f(typedef std::tuple<Args...> T a, T b);
>
> f(std::make_tuple(1, 2), std::make_tuple(3, 4)); //Args =3D=3D {int, int}=
, T=20
> =3D=3D std::tuple<int, int>
>
> template<class... Args>
> void f(std::tuple<Args...> a, decltype(a) b) {
>     using T =3D decltype(a);
>     // make use of T
> }
>

Even though using  decltype may make it shorter, it's still not ideal,=20
suppose you now have more than 2 params not just a & b.
=20

> I believe I have an idea that could be less cryptic and reuse the current=
=20
> alias.=20
> What about defining some alias at the same level as the requires clasue?
>

The crux of the extended typedef is that it allows you to declare both a=20
type and variables at once.
The idea of such a composite declaration is not novel, as in C++ we already=
=20
have:
struct S{} s; // Declares type 'S' and varaible 's'

So I think C++ programmers should be familiar with such a style, and=20
extended typedef is just a natural extension of this style.

The simple type deduction is also an important feature of extended typedef:
typedef auto T& ref =3D getSomeRef(...);=20

otherwise, we have to do more verbose
auto& ref =3D getSomeRef(...);
using T =3D std::remove_reference_t<decltype(ref)>;

>

--=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.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/e2d22969-1510-448f-acfd-44e421fc300b%40isocpp.or=
g.

------=_Part_5101_1188588797.1486345695551
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Sunday, February 5, 2017 at 10:17:51 PM UTC+8, Vicente =
J. Botet Escriba wrote:<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">
    <div>Le 05/02/2017 =C3=A0 13:56, TONGARI J a
      =C3=A9crit=C2=A0:<br>
    </div>
    <blockquote type=3D"cite">
      <div dir=3D"ltr">On Sunday, February 5, 2017 at 6:41:36 PM UTC+8,
        Vicente J. Botet Escriba wrote:=C2=A0
        <blockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8=
ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor=3D"#FFFFFF" text=3D"#000000">
            <div>I&#39;m not saying the feature is not needed. I believe
              however that the proposal needs to compare what it is
              currently doable.<br>
            </div>
            <br>
            Couldn&#39;t we use the existing language already<br>
            <br>
            <div style=3D"background-color:rgb(250,250,250);border-color:rg=
b(187,187,187);border-style:solid;border-width:1px;word-wrap:break-word"><c=
ode>
                <div><span style=3D"color:#008">template</span><span style=
=3D"color:#660">&lt;</span><span style=3D"color:#000">blahblah</span><span =
style=3D"color:#660">..., typename T =3D </span><span style=3D"color:#660">=
<code><span style=3D"color:#000"></span><span style=3D"color:#008">typename=
</span><span style=3D"color:#000"> </span><span style=3D"color:#606">MetaFu=
nc</span><span style=3D"color:#660">&lt;</span><span style=3D"color:#000">b=
lahblah</span><span style=3D"color:#660">...&gt;::</span><span style=3D"col=
or:#000">type </span></code>&gt;</span><span style=3D"color:#000"><br>
                  </span><span style=3D"color:#000">T f</span><span style=
=3D"color:#660">()</span><span style=3D"color:#000">
                  </span><span style=3D"color:#800">// yay!</span><span sty=
le=3D"color:#000"><br>
                  </span><span style=3D"color:#660">{</span><span style=3D"=
color:#000"><br>
                    =C2=A0 =C2=A0 </span><span style=3D"color:#800">// Use =
`T` from
                    now on...</span><span style=3D"color:#000"><br>
                  </span><span style=3D"color:#660">}</span></div>
              </code></div>
            <blockquote type=3D"cite">
              <div dir=3D"ltr"> </div>
            </blockquote>
          </div>
        </blockquote>
        <div>In this case, it&#39;s just an alternative w/o (ab)using the
          template param, like how concept-lite tries to eliminate
          enable_if trick.</div>
      </div>
    </blockquote>
    Maybe. I&#39;d prefer to have the possibility to use the result type as
    e.g. decltype(return).<br></div></blockquote><div><br></div><div>I have=
 no problem with decltype(return), but it&#39;s a specific solution to a si=
ngle=C2=A0case. If we could have a general solution to all similar cases, I=
&#39;d pursue it.</div><blockquote class=3D"gmail_quote" style=3D"margin: 0=
;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div bg=
color=3D"#FFFFFF" text=3D"#000000">
    <blockquote type=3D"cite">
      <div dir=3D"ltr">
        <div>=C2=A0</div>
        <blockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8=
ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor=3D"#FFFFFF" text=3D"#000000">
            <div style=3D"background-color:rgb(250,250,250);border-color:rg=
b(187,187,187);border-style:solid;border-width:1px;word-wrap:break-word"><c=
ode>
                <div><span style=3D"color:#008">template</span><span style=
=3D"color:#660">&lt;</span><span style=3D"color:#000">blahblah</span><span =
style=3D"color:#660">..., typename Base=3D</span><span style=3D"color:#660"=
><code><span style=3D"color:#000"></span><span style=3D"color:#008">typenam=
e</span><span style=3D"color:#000"> </span><span style=3D"color:#606">MetaF=
unc</span><span style=3D"color:#660">&lt;</span><span style=3D"color:#000">=
blahblah</span><span style=3D"color:#660">...&gt;::</span><span style=3D"co=
lor:#000">type</span></code>&gt;</span><span style=3D"color:#000"><br>
                  </span><span style=3D"color:#008">class</span><span style=
=3D"color:#000"> </span><span style=3D"color:#606">Derived</span><span styl=
e=3D"color:#000"> </span><span style=3D"color:#660">:</span><span style=3D"=
color:#000"> </span><span style=3D"color:#000"></span><span style=3D"color:=
#008">public</span><span style=3D"color:#000"> </span><span style=3D"color:=
#000"></span><span style=3D"color:#606">Base</span><span style=3D"color:#00=
0"> </span><span style=3D"color:#800">//
                    yay!</span><span style=3D"color:#000"><br>
                  </span><span style=3D"color:#660">{</span><span style=3D"=
color:#000"><br>
                    =C2=A0 =C2=A0 </span><span style=3D"color:#800">// Use =
`Base`
                    from now on...</span><span style=3D"color:#000"><br>
                  </span><span style=3D"color:#660">}</span></div>
              </code></div>
          </div>
        </blockquote>
        <div>=C2=A0</div>
        <div>This does not work if &quot;<span style=3D"background-color:rg=
b(250,250,250);color:rgb(0,0,0);font-family:monospace">blahblah...</span>&q=
uot;, is actually a template
          parameter pack, which has to be the last one.</div>
      </div>
    </blockquote>
    Right. This are the kind of cases you mush show on your proposal,
    the cases that cannot be solved with the current languages.<br><blockqu=
ote type=3D"cite">
      <div dir=3D"ltr">
       =20
        <div>I mean something like:</div>
        <div style=3D"background-color:rgb(250,250,250);border-color:rgb(18=
7,187,187);border-style:solid;border-width:1px;word-wrap:break-word"><code>
            <div><span style=3D"color:#008">template</span><span style=3D"c=
olor:#660">&lt;</span><span style=3D"color:#008">class</span><span style=3D=
"color:#660">...</span><span style=3D"color:#000"> </span><span style=3D"co=
lor:#606">Args</span><span style=3D"color:#660">&gt;</span><span style=3D"c=
olor:#000"><br>
              </span><span style=3D"color:#008">void</span><span style=3D"c=
olor:#000"> f</span><span style=3D"color:#660">(</span><span style=3D"color=
:#008">typedef</span><span style=3D"color:#000"> std</span><span style=3D"c=
olor:#660">::</span><span style=3D"color:#000">tuple</span><span style=3D"c=
olor:#660">&lt;</span><span style=3D"color:#606">Args</span><span style=3D"=
color:#660">...&gt;</span><span style=3D"color:#000"> T a</span><span style=
=3D"color:#660">,</span><span style=3D"color:#000"> T b</span><span style=
=3D"color:#660">);</span><span style=3D"color:#000"><br>
                <br>
              </span><font color=3D"#660066"><span style=3D"color:#000">f</=
span><span style=3D"color:#660">(</span><span style=3D"color:#000">std</spa=
n><span style=3D"color:#660">::</span><span style=3D"color:#000">make_tuple=
</span><span style=3D"color:#660">(</span><span style=3D"color:#066">1</spa=
n><span style=3D"color:#660">,</span><span style=3D"color:#000"> </span><sp=
an style=3D"color:#066">2</span><span style=3D"color:#660">),</span><span s=
tyle=3D"color:#000"> </span></font><span style=3D"color:#000">std</span><sp=
an style=3D"color:#660">::</span><span style=3D"color:#000">make_tuple</spa=
n><span style=3D"color:#660">(</span><font color=3D"#006666"><span style=3D=
"color:#066">3</span><span style=3D"color:#660">,</span><span style=3D"colo=
r:#000"> </span><span style=3D"color:#066">4</span></font><span style=3D"co=
lor:#660">));</span><span style=3D"color:#000"> </span><span style=3D"color=
:#800">//Args
                =3D=3D {int, int}, T =3D=3D std::tuple&lt;int, int&gt;</spa=
n></div>
          </code></div>
      </div>
    </blockquote>
    <code><span style=3D"color:#008">template</span><span style=3D"color:#6=
60">&lt;</span><span style=3D"color:#008">class</span><span style=3D"color:=
#660">...</span><span style=3D"color:#000"> </span><span style=3D"color:#60=
6">Args</span><span style=3D"color:#660">&gt;</span><span style=3D"color:#0=
00"><br>
      </span><span style=3D"color:#008">void</span><span style=3D"color:#00=
0"> f</span><span style=3D"color:#660">(</span><span style=3D"color:#000">s=
td</span><span style=3D"color:#660">::</span><span style=3D"color:#000">tup=
le</span><span style=3D"color:#660">&lt;</span><span style=3D"color:#606">A=
rgs</span><span style=3D"color:#660">...&gt;</span><span style=3D"color:#00=
0"> a</span><span style=3D"color:#660">,</span><span style=3D"color:#000"> =
decltype(a) b</span><span style=3D"color:#660">) {<br>
        =C2=A0=C2=A0=C2=A0 using T =3D decltype(a);<br>
        =C2=A0=C2=A0=C2=A0 // make use of T<br>
        }<br></span></code></div></blockquote><div><br></div><div>Even thou=
gh using =C2=A0<span style=3D"color: rgb(0, 0, 0); font-family: monospace;"=
>decltype</span> may make it shorter, it&#39;s still not ideal, suppose you=
 now have more than 2 params not just a &amp; b.</div><div>=C2=A0</div><blo=
ckquote 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"><code><span style=3D"color:#660">
        I believe I have an idea that could be less cryptic and reuse
        the current alias. <br>
        What about defining some alias at the same level as the requires
        clasue?<br></span></code></div></blockquote><div><br></div><div>The=
 crux of the extended typedef is that it allows you to declare both a type =
and variables at once.</div><div>The idea of such a composite declaration i=
s not novel, as in C++ we already have:</div><div><div class=3D"prettyprint=
" style=3D"background-color: rgb(250, 250, 250); border-color: rgb(187, 187=
, 187); border-style: solid; border-width: 1px; word-wrap: break-word;"><co=
de class=3D"prettyprint"><div class=3D"subprettyprint"><span style=3D"color=
: #008;" class=3D"styled-by-prettify">struct</span><span style=3D"color: #0=
00;" class=3D"styled-by-prettify"> S</span><span style=3D"color: #660;" cla=
ss=3D"styled-by-prettify">{}</span><span style=3D"color: #000;" class=3D"st=
yled-by-prettify"> s</span><span style=3D"color: #660;" class=3D"styled-by-=
prettify">;</span><span style=3D"color: #000;" class=3D"styled-by-prettify"=
> </span><span style=3D"color: #800;" class=3D"styled-by-prettify">// Decla=
res type &#39;S&#39; and varaible &#39;s&#39;</span></div></code></div><br>=
</div><div>So I think C++ programmers should be familiar with such a style,=
 and extended typedef is just a natural extension of this style.</div><div>=
<br></div><div>The simple type deduction is also an important feature of ex=
tended typedef:</div><div><div class=3D"prettyprint" style=3D"background-co=
lor: rgb(250, 250, 250); border-color: rgb(187, 187, 187); border-style: so=
lid; border-width: 1px; word-wrap: break-word;"><code class=3D"prettyprint"=
><div class=3D"subprettyprint"><span style=3D"color: #008;" class=3D"styled=
-by-prettify">typedef</span><span style=3D"color: #000;" class=3D"styled-by=
-prettify"> </span><span style=3D"color: #008;" class=3D"styled-by-prettify=
">auto</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> T</=
span><span style=3D"color: #660;" class=3D"styled-by-prettify">&amp;</span>=
<span style=3D"color: #000;" class=3D"styled-by-prettify"> </span><span sty=
le=3D"color: #008;" class=3D"styled-by-prettify">ref</span><span style=3D"c=
olor: #000;" class=3D"styled-by-prettify"> </span><span style=3D"color: #66=
0;" class=3D"styled-by-prettify">=3D</span><span style=3D"color: #000;" cla=
ss=3D"styled-by-prettify"> getSomeRef</span><span style=3D"color: #660;" cl=
ass=3D"styled-by-prettify">(...);</span><span style=3D"color: #000;" class=
=3D"styled-by-prettify"> </span></div></code></div></div><div><br></div><di=
v>otherwise, we have to do more verbose</div><div><div class=3D"prettyprint=
" style=3D"background-color: rgb(250, 250, 250); border-color: rgb(187, 187=
, 187); border-style: solid; border-width: 1px; word-wrap: break-word;"><co=
de class=3D"prettyprint"><div class=3D"subprettyprint"><span style=3D"color=
: #008;" class=3D"styled-by-prettify">auto</span><span style=3D"color: #660=
;" class=3D"styled-by-prettify">&amp;</span><span style=3D"color: #000;" cl=
ass=3D"styled-by-prettify"> </span><span style=3D"color: #008;" class=3D"st=
yled-by-prettify">ref</span><span style=3D"color: #000;" class=3D"styled-by=
-prettify"> </span><span style=3D"color: #660;" class=3D"styled-by-prettify=
">=3D</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> getS=
omeRef</span><span style=3D"color: #660;" class=3D"styled-by-prettify">(...=
);</span><span style=3D"color: #000;" class=3D"styled-by-prettify"><br></sp=
an><span style=3D"color: #008;" class=3D"styled-by-prettify">using</span><s=
pan style=3D"color: #000;" class=3D"styled-by-prettify"> T </span><span sty=
le=3D"color: #660;" class=3D"styled-by-prettify">=3D</span><span style=3D"c=
olor: #000;" class=3D"styled-by-prettify"> std</span><span style=3D"color: =
#660;" class=3D"styled-by-prettify">::</span><span style=3D"color: #000;" c=
lass=3D"styled-by-prettify">remove_reference_t</span><span style=3D"color: =
#660;" class=3D"styled-by-prettify">&lt;</span><span style=3D"color: #008;"=
 class=3D"styled-by-prettify">decltype</span><span style=3D"color: #660;" c=
lass=3D"styled-by-prettify">(</span><span style=3D"color: #008;" class=3D"s=
tyled-by-prettify">ref</span><span style=3D"color: #660;" class=3D"styled-b=
y-prettify">)&gt;;</span></div></code></div></div><blockquote class=3D"gmai=
l_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;=
padding-left: 1ex;"><div bgcolor=3D"#FFFFFF" text=3D"#000000">
  </div>

</blockquote></div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/e2d22969-1510-448f-acfd-44e421fc300b%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/e2d22969-1510-448f-acfd-44e421fc300b=
%40isocpp.org</a>.<br />

------=_Part_5101_1188588797.1486345695551--

------=_Part_5100_1198539314.1486345695550--

.
