Topic: auto/decl as a return value
Author: "Richard Smith" <richard@ex-parrot.com>
Date: Tue, 20 Mar 2007 13:28:51 CST Raw View
On Mar 19, 4:47 pm, loufo...@gmail.com (Mathias Gaunard) wrote:
> What happened to the proposal for auto as a return value?
> It was something like this:
>
> auto f() -> decltype(some_expression)
> {
> function_body
> }
The most recent version of the proposal is n2115:
<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2115.pdf>
You can follow the current state of proposals by looking at the 'State
of C++ Evolution' paper, the most recent of which, n2142, is here:
<http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2007/n2142.html>
This says the auto / decltype syntax is "undergoing final scrutiny in
Core Working group, and [has] been reviewed at least once".
--
Richard Smith
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: "Mathias Gaunard" <loufoque@gmail.com>
Date: Tue, 20 Mar 2007 18:08:50 CST Raw View
On Mar 20, 8:28 pm, "Richard Smith" <rich...@ex-parrot.com> wrote:
> The most recent version of the proposal is n2115:
>
> <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2115.pdf>
This paper says:
The new function declaration syntax
auto f(params) -> return-type
that moves the return type after the function's parameter list is not
part of the wording. There will be a separate
document for that functionality.
However, there is still no such document. Even though N2115 is more
than 4 months old.
That's why I'm wondering what happened to the new function declaration
syntax.
>
> You can follow the current state of proposals by looking at the 'State
> of C++ Evolution' paper, the most recent of which, n2142, is here:
>
> <http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2007/n2142.html>
This is not the latest one.
The latest one is N2169 :
http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2007/n2169.html
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: loufoque@gmail.com (Mathias Gaunard)
Date: Mon, 19 Mar 2007 16:47:39 GMT Raw View
What happened to the proposal for auto as a return value?
It was something like this:
auto f() -> decltype(some_expression)
{
function_body
}
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]