diff options
| author | Nikolas Klauser <nikolasklauser@berlin.de> | 2024-06-18 10:51:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-18 10:51:57 +0200 |
| commit | bbe4a80605619dcb819ccfee016cf1355fb00af2 (patch) | |
| tree | 31967ba31f6d8897b9b2450fcd116438df217b93 /libcxx/include/__thread | |
| parent | 6b4b29f85900995b2a3b817548be4a534d46763b (diff) | |
[libc++] Enable modernize-use-equals-delete (#93293)
Differential Revision: https://reviews.llvm.org/D121213
Diffstat (limited to 'libcxx/include/__thread')
| -rw-r--r-- | libcxx/include/__thread/thread.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libcxx/include/__thread/thread.h b/libcxx/include/__thread/thread.h index 7ceada1e768c..d2254a695f5e 100644 --- a/libcxx/include/__thread/thread.h +++ b/libcxx/include/__thread/thread.h @@ -69,14 +69,13 @@ class __thread_specific_ptr { __thread_specific_ptr(); friend _LIBCPP_EXPORTED_FROM_ABI __thread_specific_ptr<__thread_struct>& __thread_local_data(); - __thread_specific_ptr(const __thread_specific_ptr&); - __thread_specific_ptr& operator=(const __thread_specific_ptr&); - _LIBCPP_HIDDEN static void _LIBCPP_TLS_DESTRUCTOR_CC __at_thread_exit(void*); public: typedef _Tp* pointer; + __thread_specific_ptr(const __thread_specific_ptr&) = delete; + __thread_specific_ptr& operator=(const __thread_specific_ptr&) = delete; ~__thread_specific_ptr(); _LIBCPP_HIDE_FROM_ABI pointer get() const { return static_cast<_Tp*>(__libcpp_tls_get(__key_)); } |
