martinmoene/expected-lite

operator== fails to compile if T is `void`

Crzyrndm opened this issue · 4 comments

See https://godbolt.org/z/MvEoq4h7E

The std::expected docs for operator== cover this with the second overload I believe (T is void. No comparison is made against the "value")

Ah, thanks!
I have no memory of having noted this special case.
Will see to incorporating it, soon-ish.

Added, note to self:

Add tests for operator==() with void 'value' type.

Just reviewing some old issues I created
This appears to be resolved in master (the godbolt example now works. Currently no release version created)