C++ Logo

std-proposals

Advanced search

Re: P0323 std::expected - void value type?

From: Bjorn Reese <breese_at_[hidden]>
Date: Mon, 5 Oct 2020 18:00:35 +0200
On 2020-10-05 17:41, Emile Cormier via Std-Proposals wrote:

> If C/C++ had been designed with void being an empty monostate value
> type, I guess we wouldn't have all this trouble of treating void as a
> special case in generic programming. Libraries wouldn't have needed to
> invent their own "nothing" types like nullopt_t or monostate_t.

There has been some work in that direction, but I do not know the
current state:

   https://wg21.link/p0146

Received on 2020-10-05 11:02:40