mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 08:06:06 +00:00

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