TartanLlama / expected

C++11/14/17 std::expected with functional-style extensions
https://tl.tartanllama.xyz
Creative Commons Zero v1.0 Universal
1.55k stars 135 forks source link

operator== fails to compile if T is void #121

Closed Crzyrndm closed 2 years ago

Crzyrndm commented 2 years ago

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

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

TartanLlama commented 2 years ago

Fixed by https://github.com/TartanLlama/expected/commit/d901f362ccba8635951dcc9257e7bb13aff03514