Skip to content
Commit 580ca237 authored by Lang Hames's avatar Lang Hames
Browse files

[Support] Add a checked flag to Expected<T>, require checks before access or

destruction.

This makes the Expected<T> class behave like Error, even when in success mode.
Expected<T> values must be checked to see whether they contain an error prior
to being dereferenced, assigned to, or destructed.

llvm-svn: 265446
parent bdc3b4d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment