From 91dad3d6aa88cdb45628a4a926a8c124d8553253 Mon Sep 17 00:00:00 2001 From: Alexey Sachkov Date: Fri, 20 Sep 2024 02:33:00 -0700 Subject: [PATCH 1/2] Unify `group` code snippet with other non-user-constructible classes `group` is not user-constructible, but explicit information about its constructors was missing from the code snippet. --- adoc/headers/group.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adoc/headers/group.h b/adoc/headers/group.h index 3f897ffb1..6c91691a0 100644 --- a/adoc/headers/group.h +++ b/adoc/headers/group.h @@ -10,6 +10,8 @@ template class group { static constexpr int dimensions = Dimensions; static constexpr memory_scope fence_scope = memory_scope::work_group; + group() = delete; + /* -- common interface members -- */ id get_group_id() const; From e41eda4b76077507f19e3d2cfcf700e877fd1f9d Mon Sep 17 00:00:00 2001 From: Alexey Sachkov Date: Fri, 20 Sep 2024 07:25:20 -0700 Subject: [PATCH 2/2] Also update sub_group in a similar way --- adoc/headers/subgroup.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adoc/headers/subgroup.h b/adoc/headers/subgroup.h index ec6a0320c..f47b5e774 100644 --- a/adoc/headers/subgroup.h +++ b/adoc/headers/subgroup.h @@ -10,6 +10,8 @@ class sub_group { static constexpr int dimensions = 1; static constexpr memory_scope fence_scope = memory_scope::sub_group; + sub_group() = delete; + /* -- common interface members -- */ id<1> get_group_id() const;