220 19816 <CAGg_6+MZd8T-uFF9D5=SMb1R6ny+MRwhixY_zkz4=M9YMJJWyw@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Nevin Liber <nevin@eviloverlord.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: implicit conversion of non-const member funcs
 to const if object is const
Date: Wed, 12 Aug 2015 10:25:06 -0500
Lines: 74
Approved: news@gmane.org
Message-ID: <CAGg_6+MZd8T-uFF9D5=SMb1R6ny+MRwhixY_zkz4=M9YMJJWyw@mail.gmail.com>
References: <mqfi9s$84r$1@ger.gmane.org> <mqfkof$97v$1@ger.gmane.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11376c9e2ce373051d1ed5f9
X-Trace: ger.gmane.org 1439393155 20022 80.91.229.3 (12 Aug 2015 15:25:55 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 12 Aug 2015 15:25:55 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCE35H5S6IDBB6WKVWXAKGQEAWQ5VKA@isocpp.org Wed Aug 12 17:25:50 2015
Return-path: <std-proposals+bncBCE35H5S6IDBB6WKVWXAKGQEAWQ5VKA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f69.google.com ([209.85.218.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCE35H5S6IDBB6WKVWXAKGQEAWQ5VKA@isocpp.org>)
	id 1ZPXuX-0004AI-3M
	for gclcip-std-proposals@m.gmane.org; Wed, 12 Aug 2015 17:25:49 +0200
Original-Received: by oiey141 with SMTP id y141sf29546626oie.1
        for <gclcip-std-proposals@m.gmane.org>; Wed, 12 Aug 2015 08:25:48 -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:content-type: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=CAqQ5lTCXKcNATGufQbTNOXb8uZoUnIeCC60MoVKzzI=;
        b=UbgxrFvylt8qxuTpPuJ6t8W0FRabtpTWF1P+6q1FMbOuepk2mSe3MqxHvVFS0SInI6
         RMUQWv5VwfygCzLcO0U1MUn0tqgDjMLR60D38JyoU4LY9pHPqBdJouZ+Y+aA/iN/5Hj5
         37snRyYVTC6Gakj8eFcTQMIpL4I69i3PkpXkHFWOROhQpaJAF2NJUb3GYsi4Kf92tAp1
         pkB/AdtnknkwTPb+kDdcd2ymYJIdQPnoihixMDrHBEfOHzA0+DiEsaiSzm3qnpWwQ+43
         JxSkBK5TOt9AZNO6YkjRYG+Cdh8yIngBlLNXPuFUEWu15IQUKrnVUZ2GFRsTFm1QDC1o
         mXEQ==
X-Gm-Message-State: ALoCoQlN0MNvAr/azUvaqY70S9HdOYxsABVJRwF9G9F4Q1Bn6wQd5nz3MGcVhYpDuDQ74/svNWM+
X-Received: by 10.182.254.9 with SMTP id ae9mr14016234obd.20.1439393148167;
        Wed, 12 Aug 2015 08:25:48 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.25.194 with SMTP id 185ls252486ioz.90.gmail; Wed, 12 Aug
 2015 08:25:46 -0700 (PDT)
X-Received: by 10.50.102.98 with SMTP id fn2mr25417987igb.55.1439393146465;
        Wed, 12 Aug 2015 08:25:46 -0700 (PDT)
Original-Received: from mail-io0-x231.google.com (mail-io0-x231.google.com. [2607:f8b0:4001:c06::231])
        by mx.google.com with ESMTPS id f186si4077484ioe.187.2015.08.12.08.25.46
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 12 Aug 2015 08:25:46 -0700 (PDT)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 2607:f8b0:4001:c06::231 as permitted sender) client-ip=2607:f8b0:4001:c06::231;
Original-Received: by iods203 with SMTP id s203so23329146iod.0
        for <std-proposals@isocpp.org>; Wed, 12 Aug 2015 08:25:46 -0700 (PDT)
X-Received: by 10.107.47.197 with SMTP id v66mr33666623iov.30.1439393146263;
 Wed, 12 Aug 2015 08:25:46 -0700 (PDT)
Original-Sender: nliber@gmail.com
Original-Received: by 10.107.12.197 with HTTP; Wed, 12 Aug 2015 08:25:06 -0700 (PDT)
In-Reply-To: <mqfkof$97v$1@ger.gmane.org>
X-Original-Sender: nevin@eviloverlord.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of nliber@gmail.com designates 2607:f8b0:4001:c06::231 as permitted
 sender) smtp.mailfrom=nliber@gmail.com;       dkim=pass header.i=@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: 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:19816
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/19816>

--001a11376c9e2ce373051d1ed5f9
Content-Type: text/plain; charset=UTF-8

On 12 August 2015 at 09:21, Matthew Woehlke <mwoehlke.floss@gmail.com>
wrote:

> Er... no? Just make the member const in the first place. If it can be,
> it should be. If it can't be, it can't be, period. I find it extremely
> hard to imagine that this minor convenience is worth the complexities
> that would be involved to implement it, just so that you can be lazy
> about writing your code properly in the first place.
>

And the one place I'd want it might be for getters such as:

T& get() { return data_; }
T const& get() const { return data_; }

it won't do the correct thing, as one has to change the return type.
-- 
 Nevin ":-)" Liber  <mailto:nevin@eviloverlord.com>  (847) 691-1404

-- 

--- 
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/.

--001a11376c9e2ce373051d1ed5f9
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">=
On 12 August 2015 at 09:21, Matthew Woehlke <span dir=3D"ltr">&lt;<a href=
=3D"mailto:mwoehlke.floss@gmail.com" target=3D"_blank">mwoehlke.floss@gmail=
..com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=3D":x9=
" class=3D"a3s" style=3D"overflow:hidden">Er... no? Just make the member co=
nst in the first place. If it can be,<br>
it should be. If it can&#39;t be, it can&#39;t be, period. I find it extrem=
ely<br>
hard to imagine that this minor convenience is worth the complexities<br>
that would be involved to implement it, just so that you can be lazy<br>
about writing your code properly in the first place.<br></div></blockquote>=
</div><br>And the one place I&#39;d want it might be for getters such as:</=
div><div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">T&amp; =
get() { return data_; }</div><div class=3D"gmail_extra">T const&amp; get() =
const { return data_; }<br><br clear=3D"all"><div>it won&#39;t do the corre=
ct thing, as one has to change the return type.</div>-- <br><div class=3D"g=
mail_signature">=C2=A0Nevin &quot;:-)&quot; Liber=C2=A0 &lt;mailto:<a href=
=3D"mailto:nevin@eviloverlord.com" target=3D"_blank">nevin@eviloverlord.com=
</a>&gt;=C2=A0 (847) 691-1404</div>
</div></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 />

--001a11376c9e2ce373051d1ed5f9--

.
