• Matthias Vallentin's avatar
    Introduce new ctor overload for expected<T> · e8ab1931
    Matthias Vallentin authored
    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.
    e8ab1931
expected.hpp 11.5 KB