Thomas Heller wrote:
// nullptr when has_value()
// either nullptr or make_exception_ptr(system_error()) when
has_error()
Why not this:
make_exception_ptr(system_error(error()) when has_error()?
Yes, this was what I meant, sorry. Shortened it too much.