[llvm-dev] [RFC] Error handling in LLVM libraries.
Rafael Espíndola via llvm-dev
llvm-dev at lists.llvm.org
Tue Feb 23 12:26:54 PST 2016
>> The main differences are
>> * This will hopefully be used.
>> * TypedErrorOr is really a TypedError or T. The situation before was not
>> that ErrorOr was std::error_code or T.
> I don't follow that second point. As I see it, TypedErrorOr<T> and
> ErrorOr<T> are identical except for two points: TypedError replaces
> std::error_code, and as a consequence TypedErrorOr is only movable, not
That is the case now. Sorry, Mchiael and I were talking about ancient
history when ErrorOr<T> was *not* an std::error_code or T.
More information about the llvm-dev