Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Apr 15, 2024
1 parent 04da0b2 commit 81efdf9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,9 @@ class expected
_LIBCUDACXX_HIDE_FROM_ABI _LIBCUDACXX_INLINE_VISIBILITY constexpr _Tp&& value() &&
{
static_assert(_LIBCUDACXX_TRAIT(is_copy_constructible, _Err),
"expected::value() const&& requires is_copy_constructible_v<E>");
"expected::value() && requires is_copy_constructible_v<E>");
static_assert(_LIBCUDACXX_TRAIT(is_constructible, _Err, decltype(_CUDA_VSTD::move(error()))),
"expected::value() const&& requires is_constructible_v<E, decltype(_CUDA_VSTD::move(error()))>");
"expected::value() && requires is_constructible_v<E, decltype(_CUDA_VSTD::move(error()))>");
if (!this->__has_val_)
{
__throw_bad_expected_access<_Err>(_CUDA_VSTD::move(this->__union_.__unex_));
Expand Down

0 comments on commit 81efdf9

Please sign in to comment.