Skip to content

Commit 3ea0ce3

Browse files
committed
[SYCL] Change sub_group_mast copy-assignment operator to default
As part of version two of [sycl_ext_oneapi_sub_group_mask](https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/supported/sycl_ext_oneapi_sub_group_mask.asciidoc) the copy-asssignment operator is defined as default but were deleted as part of intel#10564. This changes them to `default` ahead of version 2 of the extension to avoid regressions. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent e8ffd02 commit 3ea0ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/sycl/ext/oneapi/sub_group_mask.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ struct sub_group_mask {
255255
sub_group_mask(const sub_group_mask &rhs)
256256
: Bits(rhs.Bits), bits_num(rhs.bits_num) {}
257257

258-
sub_group_mask &operator=(const sub_group_mask &rhs) = delete;
258+
sub_group_mask &operator=(const sub_group_mask &rhs) = default;
259259

260260
template <typename Group>
261261
friend std::enable_if_t<std::is_same_v<std::decay_t<Group>, sub_group>,

0 commit comments

Comments
 (0)