Skip to content

Commit 7aed0ba

Browse files
[SYCL] Change sub_group_mask copy-assignment operator to default (#10886)
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 #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 dc55aac commit 7aed0ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,9 @@ struct sub_group_mask {
252252
return Tmp;
253253
}
254254

255-
sub_group_mask(const sub_group_mask &rhs)
256-
: Bits(rhs.Bits), bits_num(rhs.bits_num) {}
255+
sub_group_mask(const sub_group_mask &rhs) = default;
257256

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

260259
template <typename Group>
261260
friend std::enable_if_t<std::is_same_v<std::decay_t<Group>, sub_group>,

0 commit comments

Comments
 (0)