C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Implementing a movable container for immovable objects: std::box<T>

From: Oskars Putans <o.putaans_at_[hidden]>
Date: Mon, 16 Dec 2024 01:22:28 +0200
Thank you for pointing that out. I just wanted to draw parallels. Indeed,
that is true and will keep in mind when developing this idea

On Sun, 15 Dec 2024, 18:27 Bjorn Reese, <breese_at_[hidden]> wrote:

> On 12/14/24 21:31, Oskars Putans via Std-Proposals wrote:
>
> > C++ has been progressively incorporating ideas from Rust to improve
> > memory safety. Easy examples are std::expected which parallel Rust's
> > Result, std::optional which parallels Rust's Option.
>
> I am answering off-list, because my reply is not directly related to
> your proposal.
>
> The mentioned C++ features do not come from Rust.
>
> std::optional comes from boost::optional, which dates back to 2003.
> Three years before Rust was even started. See:
>
> https://wg21.link/N3793
>
> The std::expected proposal attributes the origin to an Alexandrescu
> presentation from 2012
>
> https://wg21.link/P0323
>
> std::expected was also influenced by Boost.Outcome whose pedigree can
> be found here:
>
> https://www.boost.org/libs/outcome/doc/html/history.html
>
>

Received on 2024-12-15 23:22:43