Skip to content

Commit 6a721a0

Browse files
authoredMay 14, 2024
Make atomic_ref ctor constexpr. again. (#1737)
1 parent b32c99f commit 6a721a0

File tree

1 file changed

+1
-1
lines changed
  • libcudacxx/include/cuda/std/__cuda

1 file changed

+1
-1
lines changed
 

‎libcudacxx/include/cuda/std/__cuda/atomic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct atomic_ref : public _CUDA_VSTD::__atomic_ref_impl<_Tp, _Sco>
8383

8484
static constexpr bool is_always_lock_free = sizeof(_Tp) <= 8;
8585

86-
_LIBCUDACXX_INLINE_VISIBILITY explicit atomic_ref(_Tp& __ref)
86+
_LIBCUDACXX_INLINE_VISIBILITY explicit constexpr atomic_ref(_Tp& __ref)
8787
: _CUDA_VSTD::__atomic_ref_impl<_Tp, _Sco>(__ref)
8888
{}
8989

0 commit comments

Comments
 (0)