From 434ad03a3ffc197d4a4aff081a9356ed33e36b78 Mon Sep 17 00:00:00 2001 From: "Garcia Orozco, David" Date: Tue, 19 Nov 2024 08:50:16 -0800 Subject: [PATCH] Replace deletion of copy constructor with comment --- sycl/include/sycl/detail/common.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sycl/include/sycl/detail/common.hpp b/sycl/include/sycl/detail/common.hpp index 965d9ba58e28..35b0ed6c657c 100644 --- a/sycl/include/sycl/detail/common.hpp +++ b/sycl/include/sycl/detail/common.hpp @@ -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