[libcxx-commits] [libcxx] [libc++][expected] Applied `[[nodiscard]]` (PR #170245)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Dec 14 01:04:44 PST 2025
================
@@ -1176,7 +1176,7 @@ class expected : private __expected_base<_Tp, _Err> {
_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(const expected& __x, const unexpected<_E2>& __e)
# if _LIBCPP_STD_VER >= 26
requires requires {
- { __x.error() == __e.error() } -> __core_convertible_to<bool>;
+ { __x.error() == __e.error() }->__core_convertible_to<bool>;
----------------
frederick-vs-ja wrote:
```suggestion
{ __x.error() == __e.error() } -> __core_convertible_to<bool>;
```
https://github.com/llvm/llvm-project/pull/170245
More information about the libcxx-commits
mailing list