[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:45 PST 2025
================
@@ -1890,7 +1890,7 @@ class expected<_Tp, _Err> : private __expected_void_base<_Err> {
_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(const expected& __x, const unexpected<_E2>& __y)
# if _LIBCPP_STD_VER >= 26
requires requires {
- { __x.error() == __y.error() } -> __core_convertible_to<bool>;
+ { __x.error() == __y.error() }->__core_convertible_to<bool>;
----------------
frederick-vs-ja wrote:
```suggestion
{ __x.error() == __y.error() } -> __core_convertible_to<bool>;
```
https://github.com/llvm/llvm-project/pull/170245
More information about the libcxx-commits
mailing list