[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
================
@@ -1165,7 +1165,7 @@ class expected : private __expected_base<_Tp, _Err> {
_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(const expected& __x, const _T2& __v)
# if _LIBCPP_STD_VER >= 26
requires(!__is_std_expected<_T2>::value) && requires {
- { *__x == __v } -> __core_convertible_to<bool>;
+ { *__x == __v }->__core_convertible_to<bool>;
----------------
frederick-vs-ja wrote:
There're still pure formatting changes. Let's drop them from this PR.
```suggestion
{ *__x == __v } -> __core_convertible_to<bool>;
```
https://github.com/llvm/llvm-project/pull/170245
More information about the libcxx-commits
mailing list