C++ Logo

STD-DISCUSSION

Advanced search

Subject: Re: Are Exceptions deeply flawed?
From: Lyberta (lyberta_at_[hidden])
Date: 2019-08-09 13:27:00


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.




STD-DISCUSSION list run by herb.sutter at gmail.com

Older Archives on Google Groups