Skip to content

Commit

Permalink
Fix clang cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Jan 29, 2025
1 parent 9af518d commit 8b182b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libcudacxx/include/cuda/std/__expected/bad_expected_access.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,16 @@ template <class _Err>
class bad_expected_access : public bad_expected_access<void>
{
public:
# if _CCCL_CUDA_COMPILER(CLANG) // Clang needs this or it breaks with device only types
_CCCL_HOST_DEVICE
# endif // _CCCL_CUDA_COMPILER(CLANG)
_CCCL_HIDE_FROM_ABI explicit bad_expected_access(_Err __e)
: __unex_(_CUDA_VSTD::move(__e))
{}

# if _CCCL_CUDA_COMPILER(CLANG) // Clang needs this or it breaks with device only types
_CCCL_HOST_DEVICE
# endif // _CCCL_CUDA_COMPILER(CLANG)
_CCCL_HIDE_FROM_ABI ~bad_expected_access() noexcept
{
__unex_.~_Err();
Expand Down

0 comments on commit 8b182b2

Please sign in to comment.