Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Fix deprecated implicit copy constructor warnings in __annotated_ptr #255

Merged
merged 1 commit into from
Mar 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions include/cuda/std/detail/__annotated_ptr
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ namespace __detail_ap {

constexpr __annotated_ptr_base() noexcept = default;
constexpr __annotated_ptr_base(__annotated_ptr_base const&) = default;
_LIBCUDACXX_CONSTEXPR_AFTER_CXX11 __annotated_ptr_base& operator=(const __annotated_ptr_base&) = default;
__device__ void* __apply_prop(void* __p) const {
return __associate(__p, access_property::shared{});
}
Expand All @@ -136,6 +137,7 @@ namespace __detail_ap {

constexpr __annotated_ptr_base() noexcept = default;
constexpr __annotated_ptr_base(__annotated_ptr_base const&) = default;
_LIBCUDACXX_CONSTEXPR_AFTER_CXX11 __annotated_ptr_base& operator=(const __annotated_ptr_base&) = default;
__device__ void* __apply_prop(void* __p) const {
return __associate(__p, access_property::global{});
}
Expand All @@ -148,6 +150,7 @@ namespace __detail_ap {

constexpr __annotated_ptr_base() noexcept = default;
constexpr __annotated_ptr_base(__annotated_ptr_base const&) = default;
_LIBCUDACXX_CONSTEXPR_AFTER_CXX11 __annotated_ptr_base& operator=(const __annotated_ptr_base&) = default;
__device__ void* __apply_prop(void* __p) const {
return __associate(__p, access_property::normal{});
}
Expand All @@ -160,6 +163,7 @@ namespace __detail_ap {

constexpr __annotated_ptr_base() noexcept = default;
constexpr __annotated_ptr_base(__annotated_ptr_base const&) = default;
_LIBCUDACXX_CONSTEXPR_AFTER_CXX11 __annotated_ptr_base& operator=(const __annotated_ptr_base&) = default;
__device__ void* __apply_prop(void* __p) const {
return __associate(__p, access_property::persisting{});
}
Expand All @@ -172,6 +176,7 @@ namespace __detail_ap {

constexpr __annotated_ptr_base() noexcept = default;
constexpr __annotated_ptr_base(__annotated_ptr_base const&) = default;
_LIBCUDACXX_CONSTEXPR_AFTER_CXX11 __annotated_ptr_base& operator=(const __annotated_ptr_base&) = default;
__device__ void* __apply_prop(void* __p) const {
return __associate(__p, access_property::streaming{});
}
Expand All @@ -185,6 +190,7 @@ namespace __detail_ap {
__host__ __device__ constexpr __annotated_ptr_base() noexcept : __prop(access_property()) {}
__host__ __device__ constexpr __annotated_ptr_base(std::uint64_t __property) noexcept : __prop(__property) {}
constexpr __annotated_ptr_base(__annotated_ptr_base const&) = default;
_LIBCUDACXX_CONSTEXPR_AFTER_CXX11 __annotated_ptr_base& operator=(const __annotated_ptr_base&) = default;
__device__ void* __apply_prop(void* __p) const {
return __associate(__p, __prop);
}
Expand Down