Skip to content

Commit 543aa6f

Browse files
committed
Add indeterminate constructor to work group memory interface
1 parent 8164ff2 commit 543aa6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/include/sycl/ext/oneapi/experimental/work_group_memory.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ class __SYCL_SPECIAL_CLASS __SYCL_TYPE(work_group_memory) work_group_memory
5555
// special type to then call the __init method on it. This is purely an
5656
// implementation detail and not part of the spec.
5757
#ifdef __SYCL_DEVICE_ONLY__
58-
work_group_memory(const indeterminate_t &);
58+
work_group_memory() = default;
5959
#endif
60+
work_group_memory(const indeterminate_t &);
6061
work_group_memory(const work_group_memory &rhs) = default;
6162
work_group_memory &operator=(const work_group_memory &rhs) = default;
6263
template <typename T = DataT,

0 commit comments

Comments
 (0)