We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10d207e commit a531a18Copy full SHA for a531a18
sycl/include/sycl/ext/oneapi/device_global/device_global.hpp
@@ -101,11 +101,14 @@ class device_global_base {
101
constexpr device_global_base(
102
const device_global_base<OtherT, OtherProps> &DGB)
103
: init_val{ExtractInitialVal(DGB)} {}
104
+ constexpr device_global_base(const device_global_base &DGB)
105
+ : init_val{DGB.init_val} {}
106
#else
107
template <typename OtherT, typename OtherProps,
108
typename = std::enable_if_t<std::is_convertible_v<OtherT, T>>>
109
constexpr device_global_base(const device_global_base<OtherT, OtherProps> &) {
110
}
111
+ constexpr device_global_base(const device_global_base &) {}
112
#endif // __SYCL_DEVICE_ONLY__
113
114
template <access::decorated IsDecorated>
0 commit comments