220 26557 <00caca39-d36a-475c-840f-79759e99265d@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: xavinaar@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: auto type deduction for *_cast return argument
Date: Tue, 5 Jul 2016 01:18:44 -0700 (PDT)
Lines: 94
Approved: news@gmane.org
Message-ID: <00caca39-d36a-475c-840f-79759e99265d@isocpp.org>
References: <58140e46-2adc-4eac-8f51-72d3685cdf0b@isocpp.org>
 <7E3409C2-A2AC-4562-BB06-6D5D5ACE8AC8@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_103_462831137.1467706724557"
X-Trace: ger.gmane.org 1467706729 28593 80.91.229.3 (5 Jul 2016 08:18:49 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 5 Jul 2016 08:18:49 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCX4LEEDVMDRBZO25W5QKGQEI3HRNHQ@isocpp.org Tue Jul 05 10:18:49 2016
Return-path: <std-proposals+bncBCX4LEEDVMDRBZO25W5QKGQEI3HRNHQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f197.google.com ([209.85.220.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCX4LEEDVMDRBZO25W5QKGQEI3HRNHQ@isocpp.org>)
	id 1bKLZ9-0006Tl-6O
	for gclcip-std-proposals@m.gmane.org; Tue, 05 Jul 2016 10:18:47 +0200
Original-Received: by mail-qk0-f197.google.com with SMTP id r68sf209411332qka.3
        for <gclcip-std-proposals@m.gmane.org>; Tue, 05 Jul 2016 01:18:46 -0700 (PDT)
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=xQ3hj2V+JP3v20DKQW/xUDETVG4BdderyrZ21ns1EWs=;
        b=lBAG50kBDuQi6wfJrlp1cM4reV8ObzDnmWvosgLX3XBkALA+JxHzQsT+r5qimEkAIT
         4j1Bv+UcqgCTZfRDHTZ4EiZ0B/NCs1Xfwi+xdMiQN+BJkXe2afbqfFT7Cs2GM2mjMpTf
         PTy9G5RnmvI96mWm1qrt5NnwllytecuNp+EpEff89uSwnTdRpMOfA4+QmIu9Rl43xU2F
         J8VP5bk/QX6GkCRkZCbHT7wfFWWOTpIxoJVRuwSB4LJzNiJ5lKMXET52qy7BOGV/7gLw
         1Iq+NZXkFUGIVHy5vn4YiF0BA5K4oinb7EpYw+s1Wne7CI5bIDQ88VOojegjV/mfe/Mp
         02bA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        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=xQ3hj2V+JP3v20DKQW/xUDETVG4BdderyrZ21ns1EWs=;
        b=siwFOT/E4jl3FmJM89o+PqZMHG+J2D4F/VNHNMugiT8bHGj1A930B5wWAa5TzVUTbL
         lbIKiyMvzQoTl/5VbpP1rRD9WwNzSYOSAQPLnKrMuXkkGuUukQloGa1iEuVQUdZujw4d
         tDReW/5EFHFZonN7aMJYq28miqw5mgNpJiSKuqZdWc+knSVEE/hTEUpN4G0SkAX5qFoJ
         c2n0xQr4SZ3w2MnaThByugDS3bJdxJ/yOuTTj5JFul6zLtxlCzPceQJoFW+0fsVhtVKF
         NrW6FmCOk3Wvz8VTfTg1dEyHoIYRdyx5CmzF3xfd07lFy1RYB66Qo6uV2LG5T60d17vV
         OYqg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        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=xQ3hj2V+JP3v20DKQW/xUDETVG4BdderyrZ21ns1EWs=;
        b=Z5jc6w9pC4CsgWu+NzhbHl8kw2E9vkBjUCTC2GEg3wTnDxNgGww8BN4JK6jyOndUgS
         5Un35fvNpLA+z9/wxNCT5Gxb7mwILVkI2rY2H6dTipI5jGRGdoeaIbB4D8BleSKy7+Kv
         i7CvJitKi4WaKjA5iyY7kvqdj9W2uwhSIBpPuJZXOW7Vd4XpHZURJ2c3ghNeSdcgHzkD
         8ayCP3J47A09xk+IIHIvel6tAJ4kWaTrp9nvRWn6YOWRPMB0rhj0DVVDZk2RaC+uTEsK
         CxVPY0YCKVi4LVU9CWlhhx/7wUb7hFafyCwDel1qm1vaPAown30xdQLK/HN7ySP58p4w
         gvEQ==
X-Gm-Message-State: ALyK8tITX6N1QpQSLX3+eWBKK4GoICzPNOJu98x61WtQiql0Yejh3mcSJfvDpJ6e268+hA==
X-Received: by 10.237.36.245 with SMTP id u50mr34072007qtc.24.1467706726390;
        Tue, 05 Jul 2016 01:18:46 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.135.90 with SMTP id j87ls1696703iod.46.gmail; Tue, 05 Jul
 2016 01:18:45 -0700 (PDT)
X-Received: by 10.36.196.5 with SMTP id v5mr341685itf.4.1467706725483;
        Tue, 05 Jul 2016 01:18:45 -0700 (PDT)
In-Reply-To: <7E3409C2-A2AC-4562-BB06-6D5D5ACE8AC8@gmail.com>
X-Original-Sender: Xavinaar@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: <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:26557
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/26557>

------=_Part_103_462831137.1467706724557
Content-Type: multipart/alternative; 
	boundary="----=_Part_104_1575461357.1467706724557"

------=_Part_104_1575461357.1467706724557
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On countrary: passing *dynamic_cast* to function always means you want to=
=20
cast to function argument type.

=D0=B2=D1=82=D0=BE=D1=80=D0=BD=D0=B8=D0=BA, 5 =D0=B8=D1=8E=D0=BB=D1=8F 2016=
 =D0=B3., 14:59:06 UTC+7 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=
=D1=82=D0=B5=D0=BB=D1=8C Jonathan Coe =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=
=D0=BB:
>
> Thanks for suggesting this, I'm afraid I don't think I like this idea.
>
> It saves a bit of typing but would make it less clear what's going on and=
=20
> in cases where a function signature changes would change the meaning of=
=20
> existing code without any edits being made
>
> f(A a);
>
> Changed to
>
> f(B b);
>
> Would change the meaning of=20
>
> f(dynamic_cast(x));
>
> In a rather non-obvious way.
>
> Regards
>
> Jon
>
>

--=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/00caca39-d36a-475c-840f-79759e99265d%40isocpp.or=
g.

------=_Part_104_1575461357.1467706724557
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On countrary: passing <b>dynamic_cast</b> to function alwa=
ys means you want to cast to function argument type.<br><br>=D0=B2=D1=82=D0=
=BE=D1=80=D0=BD=D0=B8=D0=BA, 5 =D0=B8=D1=8E=D0=BB=D1=8F 2016 =D0=B3., 14:59=
:06 UTC+7 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=
=BB=D1=8C Jonathan Coe =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:<blockquo=
te class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left:=
 1px #ccc solid;padding-left: 1ex;"><div dir=3D"auto"><div></div><div>Thank=
s for suggesting this, I&#39;m afraid I don&#39;t think I like this idea.</=
div><div><br></div><div>It saves a bit of typing but would make it less cle=
ar what&#39;s going on and in cases where a function signature changes woul=
d change the meaning of existing code without any edits being made</div><di=
v><br></div><div>f(A a);</div><div><br></div><div>Changed to</div><div><br>=
</div><div>f(B b);</div><div><br></div><div>Would change the meaning of=C2=
=A0</div><div><br></div><div>f(dynamic_cast(x));</div><div><br></div><div>I=
n a rather non-obvious way.</div><div><br></div><div>Regards</div><div><br>=
</div><div>Jon<br><br></div></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/00caca39-d36a-475c-840f-79759e99265d%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/00caca39-d36a-475c-840f-79759e99265d=
%40isocpp.org</a>.<br />

------=_Part_104_1575461357.1467706724557--

------=_Part_103_462831137.1467706724557--

.
