C++ Logo

std-discussion

Advanced search

Re: Are Exceptions deeply flawed?

From: Lyberta <lyberta_at_[hidden]>
Date: Fri, 09 Aug 2019 18:27:00 +0000
Dmitry:
>>
>> std::error is much better than std::expected.
>>
>
> Can you elaborate, please?
>

It doesn't use RTTI so it has the same cost as std::expected yet allows
to separate success and failure like current exceptions. I don't see a
reason to have std::expected in the standard if we gonna get std::error.


Received on 2019-08-09 13:29:47