Skip to content

Commit 38f4ec1

Browse files
committed
remove the dependence of __variant.hpp on <memory>
1 parent d9da54e commit 38f4ec1

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

include/nvexec/detail/cuda_fwd.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "config.cuh"
2626
#include <cuda/std/detail/__config>
2727

28-
#if _LIBCUDACXX_STD_VER > 17 && _LIBCUDACXX_CUDA_API_VERSION < 1009000
28+
#if _LIBCUDACXX_STD_VER > 17 && _LIBCUDACXX_CUDA_API_VERSION < 1'009'000
2929
# define STDEXEC_LIBCUDACXX_NEEDS_ATOMIC_WORAROUND() 1
3030
#else
3131
# define STDEXEC_LIBCUDACXX_NEEDS_ATOMIC_WORAROUND() 0

include/stdexec/__detail/__variant.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "__scope.hpp"
2222

2323
#include <cstddef>
24-
#include <memory>
2524
#include <new>
2625
#include <utility>
2726

@@ -84,7 +83,7 @@ namespace stdexec {
8483
STDEXEC_ATTRIBUTE(host, device) void __destroy() noexcept {
8584
auto __index = std::exchange(__index_, __variant_npos);
8685
if (__variant_npos != __index) {
87-
((_Is == __index ? std::destroy_at(static_cast<_Ts *>(__get_ptr())) : void(0)), ...);
86+
((_Is == __index ? static_cast<_Ts *>(__get_ptr())->~_Ts() : void(0)), ...);
8887
}
8988
}
9089

0 commit comments

Comments
 (0)