220 29020 <CAAbBDD-Txt57g_XEpKhRaJhW7WXLen+emuXKgn2g19DzK5m9Bg@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Jonathan Coe <jbcoe@me.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: [propagate_const] Implicit conversion to T
Date: Thu, 20 Oct 2016 22:08:51 +0100
Lines: 86
Approved: news@gmane.org
Message-ID: <CAAbBDD-Txt57g_XEpKhRaJhW7WXLen+emuXKgn2g19DzK5m9Bg@mail.gmail.com>
References: <1f43ffe8-b267-4c8c-8834-f3e60035f18d@isocpp.org>
 <7f61be69-4f4c-40a5-9199-805edc90b428@isocpp.org> <13a71b20-8fd3-4a29-9279-716a2c9082a6@isocpp.org>
 <7abb6203-6ca7-4e04-ab6a-dc6a60e223ca@isocpp.org> <CAFk2RUZSZ4_mUv8S=O5khg9ErDSxJ8vT5R9Z3ULwKLnQqELAVw@mail.gmail.com>
 <60ae1a96-7a31-491d-bcf8-c81590544006@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a114798d22cb5e3053f5255cb
X-Trace: blaine.gmane.org 1476997736 1996 195.159.176.226 (20 Oct 2016 21:08:56 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 20 Oct 2016 21:08:56 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC2JVFPBRAHBBZPEUTAAKGQENXDOWFY@isocpp.org Thu Oct 20 23:08:51 2016
Return-path: <std-proposals+bncBC2JVFPBRAHBBZPEUTAAKGQENXDOWFY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vk0-f69.google.com ([209.85.213.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC2JVFPBRAHBBZPEUTAAKGQENXDOWFY@isocpp.org>)
	id 1bxKa3-0008D3-Ig
	for gclcip-std-proposals@m.gmane.org; Thu, 20 Oct 2016 23:08:51 +0200
Original-Received: by mail-vk0-f69.google.com with SMTP id 2sf54759756vkb.2
        for <gclcip-std-proposals@m.gmane.org>; Thu, 20 Oct 2016 14:08:54 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
         :date:message-id:subject: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=IBcQ1cMxeIfFmLg7+TKL4oR894PApsqsO0i8sMkYsCo=;
        b=k1gjfmy+ijlqqtq4YIkFUoV0HLVEozPsbU9a0lEsweqYFUyp7U9at1eAeClvl5G0Aw
         6Ni0O0NXNNJmHBS8jfpVRFo2433JAWCFkzwD9n7X6U5bu0Vv/W7T7XIHbVMm/bQ+atUR
         IsbQAu/LA/m+utB1NSxY0aEV+HWW+6zf6k8EbiBDjIsPORHsxPXU+RrX80kDJgGSY9Gm
         KB9/yXtFborpeTucmOu4yv5T72/tGoDUcHhS7jgB7TCVqGw+GmJ+4YGOjuA1EOV7fzO8
         2U5gIkBwsPXmm6JiofXb85z9PUemO6m3Q1/WtexvS4R+O8Ul8mbES7eeqm160UOe92lV
         Wggg==
X-Gm-Message-State: AA6/9Rm2Vqd8o9T7YyWCOuoLJPdMlygzSdrE/kMZ5rP/YyRTVX2ocYym2HcXyuy+CbuU+g==
X-Received: by 10.31.132.7 with SMTP id g7mr4448494vkd.41.1476997733834;
        Thu, 20 Oct 2016 14:08:53 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.1.21 with SMTP id 21ls5924970otu.49.gmail; Thu, 20 Oct
 2016 14:08:53 -0700 (PDT)
X-Received: by 10.55.75.215 with SMTP id y206mr2410989qka.26.1476997732971;
        Thu, 20 Oct 2016 14:08:52 -0700 (PDT)
Original-Received: from mail-qk0-x232.google.com (mail-qk0-x232.google.com. [2607:f8b0:400d:c09::232])
        by mx.google.com with ESMTPS id d73si28489925qkc.232.2016.10.20.14.08.52
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 20 Oct 2016 14:08:52 -0700 (PDT)
Received-SPF: pass (google.com: domain of jonathanbcoe@gmail.com designates 2607:f8b0:400d:c09::232 as permitted sender) client-ip=2607:f8b0:400d:c09::232;
Original-Received: by mail-qk0-x232.google.com with SMTP id n189so119411104qke.0
        for <std-proposals@isocpp.org>; Thu, 20 Oct 2016 14:08:52 -0700 (PDT)
X-Received: by 10.55.214.211 with SMTP id p80mr2728586qkl.235.1476997732404;
 Thu, 20 Oct 2016 14:08:52 -0700 (PDT)
Original-Sender: jonathanbcoe@gmail.com
Original-Received: by 10.237.33.237 with HTTP; Thu, 20 Oct 2016 14:08:51 -0700 (PDT)
In-Reply-To: <60ae1a96-7a31-491d-bcf8-c81590544006@isocpp.org>
X-Original-Sender: jonathanbcoe@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 jonathanbcoe@gmail.com designates 2607:f8b0:400d:c09::232 as permitted
 sender) smtp.mailfrom=jonathanbcoe@gmail.com;       dmarc=fail (p=NONE
 dis=NONE) header.from=me.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:29020
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29020>

--001a114798d22cb5e3053f5255cb
Content-Type: text/plain; charset=UTF-8

Adding `const_type` so that `const propagate_const<T>` is implicitly
convertible to `const_type_t<T>` seems pretty appealing to me.

`get_underlying` is very much like a cast operation, it was added so the
user can discard const_propagation when required.

On 20 October 2016 at 21:53, <mihailnajdenov@gmail.com> wrote:

> Of course, makes sense.
> The constness we care about is the one of the instance, we can't
> communicate and "transfer" it on creation or assignment to a new instance.
>
> --
> 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/60ae1a96-7a31-491d-
> bcf8-c81590544006%40isocpp.org
> <https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/60ae1a96-7a31-491d-bcf8-c81590544006%40isocpp.org?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAAbBDD-Txt57g_XEpKhRaJhW7WXLen%2BemuXKgn2g19DzK5m9Bg%40mail.gmail.com.

--001a114798d22cb5e3053f5255cb
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Adding `const_type` so that `const propagate_const&lt;T&gt=
;` is implicitly convertible to `const_type_t&lt;T&gt;` seems pretty appeal=
ing to me.<div><br></div><div>`get_underlying` is very much like a cast ope=
ration, it was added so the user can discard const_propagation when require=
d.<br><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On 20 Octob=
er 2016 at 21:53,  <span dir=3D"ltr">&lt;<a href=3D"mailto:mihailnajdenov@g=
mail.com" target=3D"_blank">mihailnajdenov@gmail.com</a>&gt;</span> wrote:<=
br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left=
:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Of course, makes se=
nse. </div><div>The constness we care about is the one of the instance, we =
can&#39;t communicate and &quot;transfer&quot;=C2=A0it on creation or assig=
nment to a new instance. </div><div><br></div></div><span class=3D"">

<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" target=3D"_=
blank">std-proposals+unsubscribe@<wbr>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></span>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/60ae1a96-7a31-491d-bcf8-c81590544006%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter" target=3D"_blank">=
https://groups.google.com/a/<wbr>isocpp.org/d/msgid/std-<wbr>proposals/60ae=
1a96-7a31-491d-<wbr>bcf8-c81590544006%40isocpp.org</a><wbr>.<br>
</blockquote></div><br></div></div></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/CAAbBDD-Txt57g_XEpKhRaJhW7WXLen%2Bemu=
XKgn2g19DzK5m9Bg%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAAbBDD-Txt57g_=
XEpKhRaJhW7WXLen%2BemuXKgn2g19DzK5m9Bg%40mail.gmail.com</a>.<br />

--001a114798d22cb5e3053f5255cb--

.
