220 33568 <58cf0b51-dc02-e7f8-43a0-8bcf1714e803@honermann.net> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Tom Honermann <tom@honermann.net>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Add type alias that mirrors given type
Date: Thu, 3 Aug 2017 11:37:39 -0400
Lines: 114
Approved: news@gmane.org
Message-ID: <58cf0b51-dc02-e7f8-43a0-8bcf1714e803@honermann.net>
References: <20f365ce-2a24-4576-894f-923e7b9cd76e@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------1C58BEB03CAA1C0C5330EA98"
X-Trace: blaine.gmane.org 1501774668 10673 195.159.176.226 (3 Aug 2017 15:37:48 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 3 Aug 2017 15:37:48 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.2.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDBNXSHG6UDBBREGRXGAKGQEO52DBBQ@isocpp.org Thu Aug 03 17:37:42 2017
Return-path: <std-proposals+bncBDBNXSHG6UDBBREGRXGAKGQEO52DBBQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-it0-f69.google.com ([209.85.214.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDBNXSHG6UDBBREGRXGAKGQEO52DBBQ@isocpp.org>)
	id 1ddIBs-0002AB-F2
	for gclcip-std-proposals@m.gmane.org; Thu, 03 Aug 2017 17:37:36 +0200
Original-Received: by mail-it0-f69.google.com with SMTP id c196sf17515512itc.2
        for <gclcip-std-proposals@m.gmane.org>; Thu, 03 Aug 2017 08:37:42 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1501774662; cv=pass;
        d=google.com; s=arc-20160816;
        b=hk0EcDgLV9i+Eslc5A2qDkt85yFzGVH3y89UYviGBLvzg1uKiiUurq35PRAlanfYfX
         0RHez7MUxZGKW5D3SymkZWJs5Odhs+B0UZc/wAYS7FKZBtBWbGNt5xEltBE8QGi/NIr5
         5AXD0CpV4AJhGC9u/SewljX5kXK/QawJaV1ZsdOGkMbnWMOBKx3U9Xbo0j0ame0o+dSX
         mMmw3iT41tgil34M2wSnRS7Itc7Xly/CCuFD/WOSEi4ORn5H2uG5OnJAj9SxyBx/HsnK
         T1JSgFUKdtt++Bm5miI9+uxH6LeXStvZvYZtF9tssjjFhV7nY1mZeeILvMz8Yfl8Zr+e
         l1UQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:in-reply-to:mime-version
         :user-agent:date:message-id:from:references:to:subject
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=uGxNH7tJBxrOa0aCZyI95xKQmZEexUw8316fLbpFgoM=;
        b=vptLrHRh6RifPqd9PigcvyVsooCUtNL49Wa4ddh5JBKEL43TSnt7wXxsLipVo2oE3P
         9FqaNS/xEaEiroDcC15ql2ksSanqiZDUmmfzc8CsjgnqtTtCaxNmuL+qUFV5A2qo8js2
         XAH9XTNYuSeyUeNVKyouuNfabMqqrakONAfnINwQNxfNVwf6agqd8pVoraW67G0KuezB
         b1qfJ4ePhnvlHyExqKWkyNavjPr1rfoOge3CSo85BotKXwjC1cK87Wv5CUCZ+TmD6dby
         RTwD1TuKam1A9EoVABSs6dfWFIsF4LbPHGm1f5Cx5cLkUhDXOyNvNgKBbgEhHpF7ZZuD
         jIxA==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=neutral (google.com: 108.166.43.83 is neither permitted nor denied by best guess record for domain of tom@honermann.net) smtp.mailfrom=tom@honermann.net
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:x-original-sender:x-original-authentication-results
         :reply-to:precedence:mailing-list:list-id:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=uGxNH7tJBxrOa0aCZyI95xKQmZEexUw8316fLbpFgoM=;
        b=I/n6ksiwcxyqtqDsHNZni6i5tapxagHETAyVqJvrp+rjlfxa2RR3Zg8pKilh0u2N2a
         ZTDikotBOsgUpGHEcYMjzQkWpDVuSwO9J5Cz6oTMfS7xSta61XJiD/0KBDMxFfMFneJJ
         9B0/byMpVL9F6U5Aguk+nvD4cLz5wW+kZzKXyqM80QxofGtl8DugiN5Gr2gDL/YMsPdc
         bf2toeDEAYSJE8mKwQtLt0vAcbUP2UIxNUOfv10Ec/zOypVRwOF0e9WhW+uRrkaIFtue
         tadddwKul3wj5GCQcDjMwUX+U8VF60tVBLc5Otmp6QhnCx6BMLcpdUthZ/a/mL4GwFe/
         0aOg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:references:from:message-id:date
         :user-agent:mime-version:in-reply-to: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=uGxNH7tJBxrOa0aCZyI95xKQmZEexUw8316fLbpFgoM=;
        b=CRgcIyWGUPYwzZfc7w+VrJzuk6a0j2ZNB02pq674tXt8RUwO5P8/zLWk19bOwE/6Kp
         vqfWZ4u1W2zslyG+1JBjB3pWszUQoC98muIkWiZ22TTYsWkzQnYOyUFw98nvRhsDyc+l
         r8PlbpcRhAfao9W6clptRFNpfG3FQzRqQWWgtghYgQRJwBg8P6qA7daljfo8wXR9CGXM
         jMaT7u4zzW5IAxr4q/JrNFu5lBVzBATcUkU+JMM+aTYRKIR4Yh7M3+PMbrKSrnSRmdci
         PPJGmQa+vhypC2XdtZVGIZN6hXhjk0JOJGQodj0FS/4jKgyj56Sm2r5gXnPv8/LpHsog
         G0nA==
X-Gm-Message-State: AIVw112Khd0rMMkjewxMfQ56OaYMbCLV/4Q3u56Ptm/ySmSKe/z/4SIh
	KZ9/NNFGXOn2JQ==
X-Received: by 10.36.90.149 with SMTP id v143mr1239998ita.2.1501774662168;
        Thu, 03 Aug 2017 08:37:42 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.34.141 with SMTP id i135ls1582858ioi.54.gmail; Thu, 03 Aug
 2017 08:37:40 -0700 (PDT)
X-Received: by 10.107.131.81 with SMTP id f78mr2311248iod.141.1501774660362;
        Thu, 03 Aug 2017 08:37:40 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1501774660; cv=none;
        d=google.com; s=arc-20160816;
        b=uDO/N7FRch/UmH8PLpwXjhdk1ccQcgdjY39KPZi6DvQoGkCEmUTOSlJSJJBNr1AXba
         QpNbX3T7Oo60K0UExyClBK8FK1R/H4OhxLtiM/9zW0qzmMyMLC+RnVhZW8oHbGQqFsbB
         UF7NS3tuZzjs+agC4rEIuOCazX3/AZcw9JLObTA5gdxOMNLKPOZBZcyNEX0+QzoTGU93
         fbD88OK+v1/y5P3UcWWR1X8YbIoEbdciNln1h0ksgjtjgJ5EvhXvs03re9nbNcr4IWs6
         NGLGqHV2j8pZS6A1hF4rTXY5ovol/I5Mq8SHYH4BoBjTwI6mflRumz6A119XXqh6ThFy
         o1AQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=in-reply-to:mime-version:user-agent:date:message-id:from:references
         :to:subject:arc-authentication-results;
        bh=vuO4i0esf/hw0WJ/exC8CAe7ZbSyuMh5zFmPeekLepo=;
        b=rWF6ANsj19vsayYBZwCxLjFBodGlAePyQTX83Lwemj1/ixb5MsQCBitdP95U1BwQod
         t0rMXxjE5Gt8PGx/U8+H1FVk/rHpRL4HGnB2fX8lI5dix5R8s0G+O8jtWx6MkOeXrkke
         Fb4kbKLN5i6a7ytqeO8RutXub0Xyr/ztvpBicysm+KqRCPy5jL11v9TepAjC5mvq/n2X
         TRp8hFPivMCX6gyiHhn2l9FfTE+CHl2UmQykQ22BGdlgrCYPfHMiBKgr9/28yts+F/We
         rTcZz1COVIy8HMIauz20F7JlCBhxPkbkF6B6U70n/b3s9xMclM62RKiNv6Ux0Rl1ItB8
         LwKA==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 108.166.43.83 is neither permitted nor denied by best guess record for domain of tom@honermann.net) smtp.mailfrom=tom@honermann.net
Original-Received: from smtp83.ord1c.emailsrvr.com (smtp83.ord1c.emailsrvr.com. [108.166.43.83])
        by mx.google.com with ESMTPS id 10si1205390iol.393.2017.08.03.08.37.40
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 03 Aug 2017 08:37:40 -0700 (PDT)
Received-SPF: neutral (google.com: 108.166.43.83 is neither permitted nor denied by best guess record for domain of tom@honermann.net) client-ip=108.166.43.83;
Original-Received: from smtp19.relay.ord1c.emailsrvr.com (localhost [127.0.0.1])
	by smtp19.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id D4FB0A06B8
	for <std-proposals@isocpp.org>; Thu,  3 Aug 2017 11:37:39 -0400 (EDT)
X-Auth-ID: tom@honermann.net
Original-Received: by smtp19.relay.ord1c.emailsrvr.com (Authenticated sender: tom-AT-honermann.net) with ESMTPSA id A5C3FA05C4
	for <std-proposals@isocpp.org>; Thu,  3 Aug 2017 11:37:39 -0400 (EDT)
X-Sender-Id: tom@honermann.net
Original-Received: from [192.168.1.15] (pool-173-53-30-126.rcmdva.fios.verizon.net [173.53.30.126])
	(using TLSv1.2 with cipher DHE-RSA-AES128-SHA)
	by 0.0.0.0:587 (trex/5.7.12);
	Thu, 03 Aug 2017 11:37:39 -0400
In-Reply-To: <20f365ce-2a24-4576-894f-923e7b9cd76e@isocpp.org>
X-Original-Sender: tom@honermann.net
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 108.166.43.83 is neither permitted nor denied by best guess
 record for domain of tom@honermann.net) smtp.mailfrom=tom@honermann.net
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:33568
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33568>

This is a multi-part message in MIME format.
--------------1C58BEB03CAA1C0C5330EA98
Content-Type: text/plain; charset="UTF-8"; format=flowed

On 08/02/2017 03:27 PM, Antonio Perez wrote:
> I propose that a type alias which simply returns the given type be 
> added to the standard library for the purpose of working with types 
> whose syntax is problematic.
>
> The definition could be as follows:
>
> |
> template<classT>usingtypemirror =T;
> |
|This template is typically called identity (or identity_t) and is also 
useful for disabling type deduction.

It might be worth trying to standardize it, but there is prior history 
to be aware of:

https://groups.google.com/a/isocpp.org/forum/#!topic/std-proposals/vrrtKvA7cqo

Tom.|

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/58cf0b51-dc02-e7f8-43a0-8bcf1714e803%40honermann.net.

--------------1C58BEB03CAA1C0C5330EA98
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">On 08/02/2017 03:27 PM, Antonio Perez
      wrote:<br>
    </div>
    <blockquote
      cite=3D"mid:20f365ce-2a24-4576-894f-923e7b9cd76e@isocpp.org"
      type=3D"cite">
      <div dir=3D"ltr">I propose that a type alias which simply returns
        the given type be added to the standard library for the purpose
        of working with types whose syntax is problematic.<br>
        <br>
        The definition could be as follows:<br>
        <br>
        <div style=3D"background-color: rgb(250, 250, 250); border-color:
          rgb(187, 187, 187); border-style: solid; border-width: 1px;
          overflow-wrap: break-word;" class=3D"prettyprint"><code
            class=3D"prettyprint">
            <div class=3D"subprettyprint"><span style=3D"color: #008;"
                class=3D"styled-by-prettify">template</span><span
                style=3D"color: #660;" class=3D"styled-by-prettify">&lt;</s=
pan><span
                style=3D"color: #008;" class=3D"styled-by-prettify">class</=
span><span
                style=3D"color: #000;" class=3D"styled-by-prettify"> T</spa=
n><span
                style=3D"color: #660;" class=3D"styled-by-prettify">&gt;</s=
pan><span
                style=3D"color: #000;" class=3D"styled-by-prettify"> </span=
><span
                style=3D"color: #008;" class=3D"styled-by-prettify">using</=
span><span
                style=3D"color: #000;" class=3D"styled-by-prettify">
                typemirror </span><span style=3D"color: #660;"
                class=3D"styled-by-prettify">=3D</span><span style=3D"color=
:
                #000;" class=3D"styled-by-prettify"> T</span><span
                style=3D"color: #660;" class=3D"styled-by-prettify">;</span=
><span
                style=3D"color: #000;" class=3D"styled-by-prettify"><br>
              </span></div>
          </code></div>
      </div>
    </blockquote>
    <code>This template is typically called identity (or identity_t) and
      is also useful for disabling type deduction.<br>
      <br>
      It might be worth trying to standardize it, but there is prior
      history to be aware of:<br>
      <br>
<a class=3D"moz-txt-link-freetext" href=3D"https://groups.google.com/a/isoc=
pp.org/forum/#!topic/std-proposals/vrrtKvA7cqo">https://groups.google.com/a=
/isocpp.org/forum/#!topic/std-proposals/vrrtKvA7cqo</a><br>
      <br>
      Tom.</code>
  </body>
</html>

<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/58cf0b51-dc02-e7f8-43a0-8bcf1714e803%=
40honermann.net?utm_medium=3Demail&utm_source=3Dfooter">https://groups.goog=
le.com/a/isocpp.org/d/msgid/std-proposals/58cf0b51-dc02-e7f8-43a0-8bcf1714e=
803%40honermann.net</a>.<br />

--------------1C58BEB03CAA1C0C5330EA98--

.
