llvm-project
9fd3c411 - [libc++] Fix `unexpected` heterogeneous comparison (#115249)

Commit
1 year ago
[libc++] Fix `unexpected` heterogeneous comparison (#115249) Currently, libc++ incorrectly rejects heterogeneous comparison of `unexpected`, because the `operator==` is only a hidden friend of `unexpected<_Err>` but not of `unexpected<_Err2>`. We need to call the `error()` member function on `__y`. Fixes #115326
Parents
Loading