Skip to content

Commit 9da6668

Browse files
authored
[SYCL] Add an user-defined copy constructor (#11637)
The static verifier reported a missing user defined copy constructor as delete to match to the existing assignment operator.
1 parent 6f24808 commit 9da6668

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/source/detail/xpti_registry.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ class XPTIScope {
194194
}
195195
}
196196

197-
XPTIScope &operator=(const XPTIScope &) = delete;
197+
XPTIScope(const XPTIScope &rhs) = delete;
198+
199+
XPTIScope &operator=(const XPTIScope &rhs) = delete;
198200

199201
xpti::trace_event_data_t *traceEvent() { return MTraceEvent; }
200202

0 commit comments

Comments
 (0)