220 15455 <CAB+4KHLh548QV4doYHiBP5C2F0GvZKqTc89Dh7gmMO6Qok3zhw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Andrew Tomazos <andrewtomazos@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Adding a remove_cv_reference type trait
Date: Sun, 4 Jan 2015 21:45:44 +0100
Lines: 99
Approved: news@gmane.org
Message-ID: <CAB+4KHLh548QV4doYHiBP5C2F0GvZKqTc89Dh7gmMO6Qok3zhw@mail.gmail.com>
References: <5880acc5-8236-40a0-bd5d-dfa6d9284572@isocpp.org>
	<CAB+4KH+0Zy1hfW6baW2kEWT+Lw7H53yd7UQGZMf0MpfC19WpCw@mail.gmail.com>
	<7c1ddf8b-051b-4fa8-9c00-8fe239890edc@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=047d7b343bae5f3392050bd9a8bf
X-Trace: ger.gmane.org 1420404355 10867 80.91.229.3 (4 Jan 2015 20:45:55 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 4 Jan 2015 20:45:55 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBD5KHQXXWYPRB6GMU2SQKGQEDFM4W2I@isocpp.org Sun Jan 04 21:45:49 2015
Return-path: <std-proposals+bncBD5KHQXXWYPRB6GMU2SQKGQEDFM4W2I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-we0-f200.google.com ([74.125.82.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBD5KHQXXWYPRB6GMU2SQKGQEDFM4W2I@isocpp.org>)
	id 1Y7s3W-0005bu-S3
	for gclcip-std-proposals@m.gmane.org; Sun, 04 Jan 2015 21:45:46 +0100
Original-Received: by mail-we0-f200.google.com with SMTP id u56sf3233364wes.7
        for <gclcip-std-proposals@m.gmane.org>; Sun, 04 Jan 2015 12:45:46 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:content-type: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=YS7nkH/d4p6ALIObl8TNtozU/MDq4DKmm8200qn3l3I=;
        b=PneZxNtAydPLeVJXwYDJaF+g2aPGpq0ZXMCl1LEXgHdBUKg1JOYDdft11e9YGFmp0h
         gCbevnL7wmpKJDpN/UeGGs0znHch/vUce7oDknOSQgBbR88JOKyzfztHAajPs5OsBffl
         EZ2KaNimtNJh9YQWSqEheSkaP6JfzHMcxwPbvFNIr5lSRcY6IznnuyvhwxIgKRRNY2co
         +fm7A//q9jkNWjbmLA2kWB0d6t3GOpDkO63tYjahTVUjBp++oc364SrnZwqcmM+d+U1f
         n1niObO1uJjDfm6y4KyyebwvIN5tuPIAWElWTq44+Euh8Jsbour+oeFlS7F0aR8AFFdH
         T3kQ==
X-Gm-Message-State: ALoCoQnzIDJuwVFlAoGC9ILHgei6dLDpAPn3o8OPN7Oxu4By3/rw1kPA8/BlKGJBwxvrCbHJc0fQ
X-Received: by 10.112.89.36 with SMTP id bl4mr7349962lbb.1.1420404346235;
        Sun, 04 Jan 2015 12:45:46 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.87.205 with SMTP id ba13ls2264457lab.66.gmail; Sun, 04 Jan
 2015 12:45:44 -0800 (PST)
X-Received: by 10.152.29.193 with SMTP id m1mr88335320lah.84.1420404344314;
        Sun, 04 Jan 2015 12:45:44 -0800 (PST)
Original-Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com. [2a00:1450:4010:c04::235])
        by mx.google.com with ESMTPS id t10si47636187lat.56.2015.01.04.12.45.44
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sun, 04 Jan 2015 12:45:44 -0800 (PST)
Received-SPF: pass (google.com: domain of andrewtomazos@gmail.com designates 2a00:1450:4010:c04::235 as permitted sender) client-ip=2a00:1450:4010:c04::235;
Original-Received: by mail-lb0-f181.google.com with SMTP id l4so16638643lbv.26
        for <std-proposals@isocpp.org>; Sun, 04 Jan 2015 12:45:44 -0800 (PST)
X-Received: by 10.112.145.37 with SMTP id sr5mr90493827lbb.76.1420404344171;
 Sun, 04 Jan 2015 12:45:44 -0800 (PST)
Original-Received: by 10.25.211.16 with HTTP; Sun, 4 Jan 2015 12:45:44 -0800 (PST)
In-Reply-To: <7c1ddf8b-051b-4fa8-9c00-8fe239890edc@isocpp.org>
X-Original-Sender: andrewtomazos@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of andrewtomazos@gmail.com designates 2a00:1450:4010:c04::235 as
 permitted sender) smtp.mail=andrewtomazos@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE dis=NONE) header.from=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>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://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>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:15455
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/15455>

--047d7b343bae5f3392050bd9a8bf
Content-Type: text/plain; charset=UTF-8

What is your proposed `std::remove_cv_reference` trait useful for?  You can
already spell it `std::remove_cv_t<std::remove_reference_t<T>>`, if you
only need it occasionally. So demonstrate that it is so commonly needed to
warrant adding it, by providing motivating use cases.

On Sun, Jan 4, 2015 at 9:37 PM, <R.HL@gmx.net> wrote:

> These type adjustments are not performed by remove_cv_reference as it
> simply isn't intended to. If I give const int[3] as the argument to this
> trait  I want int[3] as the output, period.
>
> Am Sonntag, 4. Januar 2015 20:27:33 UTC schrieb Andrew Tomazos:
>>
>> std::decay does this, as well as array-to-pointer and function-to-pointer.
>>
>  --
>
> ---
> 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
> http://groups.google.com/a/isocpp.org/group/std-proposals/.
>

-- 

--- 
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 http://groups.google.com/a/isocpp.org/group/std-proposals/.

--047d7b343bae5f3392050bd9a8bf
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">What is your proposed `std::remove_cv_reference` trait use=
ful for?=C2=A0 You can already spell it `std::remove_cv_t&lt;std::remove_re=
ference_t&lt;T&gt;&gt;`, if you only need it occasionally. So demonstrate t=
hat it is so commonly needed to warrant adding it, by providing motivating =
use cases.</div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">O=
n Sun, Jan 4, 2015 at 9:37 PM,  <span dir=3D"ltr">&lt;<a href=3D"mailto:R.H=
L@gmx.net" target=3D"_blank">R.HL@gmx.net</a>&gt;</span> wrote:<br><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex"><div dir=3D"ltr">These type adjustments are not perf=
ormed by <font face=3D"courier new, monospace">remove_cv_reference</font> a=
s it simply isn&#39;t intended to. If I give=C2=A0<font face=3D"courier new=
, monospace">const int[3] </font><font face=3D"arial, sans-serif">as the ar=
gument to this trait =C2=A0</font>I want<font face=3D"courier new, monospac=
e">=C2=A0int[3]</font>=C2=A0as the output, period.<span class=3D""><br><br>=
Am Sonntag, 4. Januar 2015 20:27:33 UTC schrieb Andrew Tomazos:</span><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-lef=
t:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">std::decay does this, a=
s well as array-to-pointer and function-to-pointer.</div><span class=3D"HOE=
nZb"><font color=3D"#888888">
</font></span></blockquote></div><span class=3D"HOEnZb"><font color=3D"#888=
888">

<p></p>

-- <br></font></span><div class=3D"HOEnZb"><div class=3D"h5">
<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" target=3D"_=
blank">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/" target=3D"_blank">http://groups.google.com/a/isocpp.org/gro=
up/std-proposals/</a>.<br>
</div></div></blockquote></div><br></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"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--047d7b343bae5f3392050bd9a8bf--

.
