[libcxx-commits] [libcxx] [libcxx][test-support] Improve thread_unsafe_shared_ptr (PR #195932)

Nikita Belenkiy via libcxx-commits libcxx-commits at lists.llvm.org
Fri May 15 04:45:00 PDT 2026


================
@@ -424,6 +433,33 @@ class thread_unsafe_shared_ptr {
     T content;
   };
 
+  thread_unsafe_shared_ptr() = default;
----------------
kitsnet wrote:

To move it to private section. The way it is (and was) designed, it is not nullable, so it is not really suited to be used outside `make_thread_unsafe_shared()`. As it's just for internal test use, I see no point in complicating it by making it nullable (at least yet).

https://github.com/llvm/llvm-project/pull/195932


More information about the libcxx-commits mailing list