Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit b2be034

Browse files
author
psamolysov-intel
authored
[SYCL] Make a test class trivially copyable in multi_ptr.cpp (#555)
The class 'point' is used to test 'multi_ptr'. A 'sycl::buffer' for instances of the class is created and the class must be a trivially copyable to be trait as device copyable. Otherwise a compilation error will be generated after a new check for device copyability in the 'sycl::buffer' class, see intel/llvm#4914. Signed-off-by: Pavel Samolysov <[email protected]>
1 parent 3df091e commit b2be034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SYCL/Basic/multi_ptr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ template <typename T> class testMultPtrKernel;
3030
template <typename T> class testMultPtrArrowOperatorKernel;
3131

3232
template <typename T> struct point {
33-
point(const point &rhs) : x(rhs.x), y(rhs.y) {}
33+
point(const point &rhs) = default;
3434
point(T x, T y) : x(x), y(y) {}
3535
point(T v) : x(v), y(v) {}
3636
point() : x(0), y(0) {}

0 commit comments

Comments
 (0)