Introduce new ctor overload for expected<T>
The new helper class no_error_t has a single constexpr instance no_error, for which expected<T> now has a non-explicit ctor overload. This comes in handy when a T has non-explicit ctor overload for none_t, creating an ambiguity when attempting to construct expected<T>{none}, since both error and T are viable candidates.
Showing
Please register or sign in to comment