File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,14 @@ class kernel_impl {
62
62
// / \param ProgramImpl is a valid instance of program_impl
63
63
kernel_impl (ContextImplPtr Context, ProgramImplPtr ProgramImpl);
64
64
65
+ // This section means the object is non-movable and non-copyable
66
+ // There is no need of move and copy constructors in kernel_impl.
67
+ // If they need to be added, piKernelRetain method for MKernel should be present.
68
+ kernel_impl (const kernel_impl &) = delete ;
69
+ kernel_impl (kernel_impl &&) = delete ;
70
+ kernel_impl &operator =(const kernel_impl &) = delete ;
71
+ kernel_impl &operator =(kernel_impl &&) = delete ;
72
+
65
73
~kernel_impl ();
66
74
67
75
// / Gets a valid OpenCL kernel handle
@@ -145,13 +153,6 @@ class kernel_impl {
145
153
const ContextImplPtr MContext;
146
154
const ProgramImplPtr MProgramImpl;
147
155
bool MCreatedFromSource = true ;
148
-
149
- public:
150
- // This section means the object is non-movable and non-copyable
151
- kernel_impl (const kernel_impl &) = delete ;
152
- kernel_impl (kernel_impl &&) = delete ;
153
- kernel_impl &operator =(const kernel_impl &) = delete ;
154
- kernel_impl &operator =(kernel_impl &&) = delete ;
155
156
};
156
157
157
158
} // namespace detail
You can’t perform that action at this time.
0 commit comments