Skip to content

Commit

Permalink
Replace deletion of copy constructor with comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ayylol committed Nov 19, 2024
1 parent 44ae82a commit 434ad03
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sycl/include/sycl/detail/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ class __SYCL_EXPORT tls_code_loc_t {
/// @brief Iniitializes TLS with CodeLoc if a TLS entry not present
/// @param CodeLoc The code location information to set up the TLS slot with.
tls_code_loc_t(const detail::code_location &CodeLoc);
// Used to maintain global state, so we do not want to copy
tls_code_loc_t(const tls_code_loc_t &) = delete;
tls_code_loc_t &operator=(const tls_code_loc_t &) = delete;

// TODO: delete copy constructor and copy assignment operator during next
// ABI breaking window
// Used to maintain global state (GCodeLocTLS), so we do not want to copy

/// If the code location is set up by this instance, reset it.
~tls_code_loc_t();
/// @brief Query the information in the TLS slot
Expand Down

0 comments on commit 434ad03

Please # to comment.