Skip to content

Commit

Permalink
Make default constructor private
Browse files Browse the repository at this point in the history
  • Loading branch information
lbushi25 committed Nov 8, 2024
1 parent 172d717 commit e531b05
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions sycl/include/sycl/ext/oneapi/experimental/work_group_memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,14 @@ class __SYCL_SPECIAL_CLASS __SYCL_TYPE(work_group_memory) work_group_memory
using decoratedPtr = typename sycl::detail::DecoratedType<
value_type, access::address_space::local_space>::type *;

// Frontend requires special types to have a default constructor in device
// compilation mode in order to have a uniform way of initializing an object of
// special type to then call the __init method on it. This is purely an
// implementation detail and not part of the spec.
#ifdef __SYCL_DEVICE_ONLY__
// Frontend requires special types to have a default constructor in order to
// have a uniform way of initializing an object of special type to then call
// the __init method on it. This is purely an implementation detail and not
// part of the spec.
work_group_memory() = default;
#endif

public:
work_group_memory(const indeterminate_t &) {};
work_group_memory(const indeterminate_t &){};
work_group_memory(const work_group_memory &rhs) = default;
work_group_memory &operator=(const work_group_memory &rhs) = default;
template <typename T = DataT,
Expand Down

0 comments on commit e531b05

Please sign in to comment.