Skip to content

Commit 434ad03

Browse files
committed
Replace deletion of copy constructor with comment
1 parent 44ae82a commit 434ad03

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sycl/include/sycl/detail/common.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@ class __SYCL_EXPORT tls_code_loc_t {
134134
/// @brief Iniitializes TLS with CodeLoc if a TLS entry not present
135135
/// @param CodeLoc The code location information to set up the TLS slot with.
136136
tls_code_loc_t(const detail::code_location &CodeLoc);
137-
// Used to maintain global state, so we do not want to copy
138-
tls_code_loc_t(const tls_code_loc_t &) = delete;
139-
tls_code_loc_t &operator=(const tls_code_loc_t &) = delete;
137+
138+
// TODO: delete copy constructor and copy assignment operator during next
139+
// ABI breaking window
140+
// Used to maintain global state (GCodeLocTLS), so we do not want to copy
141+
140142
/// If the code location is set up by this instance, reset it.
141143
~tls_code_loc_t();
142144
/// @brief Query the information in the TLS slot

0 commit comments

Comments
 (0)