Topic: Small change to a function declaration: allow to


Author: =?ISO-8859-1?Q?Daniel_Kr=FCgler?= <daniel.kruegler@gmail.com>
Date: Thu, 30 May 2013 10:32:33 +0200
Raw View
2013/5/30 Mikhail Semenov <mikhailsemenov1957@gmail.com>:
> Now-a-days we often write
> auto f(...)->decltype(expression) { ... return expression; }
>
> I propose to drop the result type:
>
> auto f(...) {... return expression; }

We have this language feature since the Bristol meeting by acceptance of

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3638.html

- Daniel

--

---
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/?hl=en.



.


Author: Mikhail Semenov <mikhailsemenov1957@gmail.com>
Date: Thu, 30 May 2013 01:47:52 -0700 (PDT)
Raw View
------=_Part_6991_23804709.1369903672016
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Daniel,
=20
Thank you.
=20
Mikhail.

On Thursday, May 30, 2013 9:32:33 AM UTC+1, Daniel Kr=FCgler wrote:

> 2013/5/30 Mikhail Semenov <mikhailse...@gmail.com <javascript:>>:=20
> > Now-a-days we often write=20
> > auto f(...)->decltype(expression) { ... return expression; }=20
> >=20
> > I propose to drop the result type:=20
> >=20
> > auto f(...) {... return expression; }=20
>
> We have this language feature since the Bristol meeting by acceptance of=
=20
>
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3638.html=20
>
> - Daniel=20
>

--=20

---=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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/?hl=3Den.



------=_Part_6991_23804709.1369903672016
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<DIV>Daniel,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Mikhail.</DIV>
<DIV><BR>On Thursday, May 30, 2013 9:32:33 AM UTC+1, Daniel Kr=FCgler wrote=
:</DIV>
<BLOCKQUOTE style=3D"BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex=
; PADDING-LEFT: 1ex" class=3Dgmail_quote>2013/5/30 Mikhail Semenov &lt;<A h=
ref=3D"javascript:" target=3D_blank gdf-obfuscated-mailto=3D"LRK970dL820J">=
mikhailse...@gmail.com</A>&gt;<WBR>: <BR>&gt; Now-a-days we often write <BR=
>&gt; auto f(...)-&gt;decltype(expression) { ... return expression; } <BR>&=
gt; <BR>&gt; I propose to drop the result type: <BR>&gt; <BR>&gt; auto f(..=
..) {... return expression; } <BR><BR>We have this language feature since th=
e Bristol meeting by acceptance of <BR><BR><A href=3D"http://www.open-std.o=
rg/jtc1/sc22/wg21/docs/papers/2013/n3638.html" target=3D_blank>http://www.o=
pen-std.org/jtc1/<WBR>sc22/wg21/docs/papers/2013/<WBR>n3638.html</A> <BR><B=
R>- Daniel <BR></BLOCKQUOTE>

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_6991_23804709.1369903672016--

.