Skip to content

Commit 1f9120c

Browse files
committed
delete copy ctor inside preview breaking changes
1 parent 434ad03 commit 1f9120c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sycl/include/sycl/detail/common.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,11 @@ class __SYCL_EXPORT tls_code_loc_t {
135135
/// @param CodeLoc The code location information to set up the TLS slot with.
136136
tls_code_loc_t(const detail::code_location &CodeLoc);
137137

138-
// TODO: delete copy constructor and copy assignment operator during next
139-
// ABI breaking window
138+
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
140139
// Used to maintain global state (GCodeLocTLS), so we do not want to copy
140+
tls_code_loc_t(const tls_code_loc_t &) = delete;
141+
tls_code_loc_t &operator=(const tls_code_loc_t &) = delete;
142+
#endif // __INTEL_PREVIEW_BREAKING_CHANGES
141143

142144
/// If the code location is set up by this instance, reset it.
143145
~tls_code_loc_t();

0 commit comments

Comments
 (0)