Skip to content

Commit 81efdf9

Browse files
committed
Fix error message
1 parent 04da0b2 commit 81efdf9

File tree

1 file changed

+2
-2
lines changed
  • libcudacxx/include/cuda/std/detail/libcxx/include/__expected

1 file changed

+2
-2
lines changed

libcudacxx/include/cuda/std/detail/libcxx/include/__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)