See https://godbolt.org/z/MvEoq4h7E The std::expected docs for [operator==](https://en.cppreference.com/w/cpp/utility/expected/operator_cmp) cover this with the second overload I believe (T is void. No comparison is made against the "value")