Skip to content

Commit f1eaa43

Browse files
committed
Fix error message
1 parent ff72396 commit f1eaa43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcudacxx/include/cuda/std/__expected/expected.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,9 @@ class expected
588588
_LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_INLINE_VISIBILITY constexpr _Tp&& value() &&
589589
{
590590
static_assert(_LIBCUDACXX_TRAIT(is_copy_constructible, _Err),
591-
"expected::value() const&& requires is_copy_constructible_v<E>");
591+
"expected::value() && requires is_copy_constructible_v<E>");
592592
static_assert(_LIBCUDACXX_TRAIT(is_constructible, _Err, decltype(_CUDA_VSTD::move(error()))),
593-
"expected::value() const&& requires is_constructible_v<E, decltype(_CUDA_VSTD::move(error()))>");
593+
"expected::value() && requires is_constructible_v<E, decltype(_CUDA_VSTD::move(error()))>");
594594
if (!this->__has_val_)
595595
{
596596
__throw_bad_expected_access<_Err>(_CUDA_VSTD::move(this->__union_.__unex_));

0 commit comments

Comments
 (0)