C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Rust vs C/C++ vs C++ Superset

From: Jarrad Waterloo <descender76_at_[hidden]>
Date: Wed, 28 Sep 2022 18:05:52 -0400
Thank you Christof for telling me and everyone who brought that paper to
the light of day. That was a nice pick me up. I really hope people talk
more about this great feature.

On Wed, Sep 28, 2022 at 12:50 PM Christof Meerwald <cmeerw_at_[hidden]>
wrote:

> On Wed, Sep 28, 2022 at 12:29:22PM -0400, Phil Bouchard via Std-Proposals
> wrote:
> > Yeah I agree with that, in a way to make C++ stricter, safer and
> simpler. I
> > would add also: "return of reference to local variables":
> >
> > int & foo()
> > {
> > int i;
> > return i;
> > }
> >
> > Apparently this issue is not even detected by Visual Studio C++ in 2022.
>
> That's already addressed in C++23 by https://wg21.link/P2266R3 "Simpler
> implicit move".
>
>
> Christof
>
> --
>
> https://cmeerw.org sip:cmeerw at cmeerw.org
> mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org
>

Received on 2022-09-28 22:06:04