[llvm-dev] [RFC] Error handling in LLVM libraries.
Lang Hames via llvm-dev
llvm-dev at lists.llvm.org
Tue Feb 23 17:30:55 PST 2016
Ahh - that makes sense. Thanks. :)
On Tue, Feb 23, 2016 at 12:26 PM, Rafael Espíndola <
rafael.espindola at gmail.com> wrote:
> >> 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
> > copyable.
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev