Closed subbota-a closed 1 month ago
I wrote a patch for 47 version. Maybe it will help to make the imrovements trompeloeil.patch
Man, that is nasty. IMO operator==(expected<T,E>, V)
should only be a candidate if T and V are equality comparable. I'm not sure if this should be a defect report to the standard, or a bug report to the library. I notice that gcc's libstdc++ has the same problem as libc++.
Thanks for the patch.
Please try out branch expected and see if it solves your issue.
Man, thank you, it works now!
I'd suggest you to extend your tests as I wrote in the comments.
Please let me know when the fix appears in the release.
Added the test you suggested. Thanks.
Merged to main. I'm off to the C++OnSea conference in the UK next week, so it'll probably be some time after that that I tag the next release.
Just tagged release v48 which includes this.
Please, help to resolve compilation error I got when I started to use trompeloeil.
The list of errors is huge but the small extract is
https://godbolt.org/z/sMe6PoYWc