Skip to content

Commit fce0670

Browse files
[ABI-Break][SYCL] Enforce buffer's element type to be device copyable (#13200)
1 parent 829dec9 commit fce0670

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

sycl/include/sycl/buffer.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,8 @@ template <typename T, int dimensions = 1,
167167
typename std::enable_if_t<(dimensions > 0) && (dimensions <= 3)>>
168168
class buffer : public detail::buffer_plain,
169169
public detail::OwnerLessBase<buffer<T, dimensions, AllocatorT>> {
170-
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
171170
static_assert(is_device_copyable_v<T>,
172171
"Underlying type of a buffer must be device copyable!");
173-
#else
174-
static_assert(!std::is_same_v<T, std::string>,
175-
"'std::string' is not a device copyable type");
176-
#endif
177172

178173
public:
179174
using value_type = T;

0 commit comments

Comments
 (0)