[libcxx-commits] [libcxx] [libc++] Remove UB from std::map __tree_node construction (PR #153908)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 18 02:02:31 PDT 2025


================
@@ -582,10 +585,37 @@ class _LIBCPP_STANDALONE_DEBUG __tree_node : public __tree_node_base<_VoidPtr> {
 public:
   using __node_value_type _LIBCPP_NODEBUG = __get_node_value_type_t<_Tp>;
 
-  __node_value_type __value_;
----------------
philnik777 wrote:

Can we make this private in a preceding patch? That would make this patch a lot smaller and more focused on the complex part.

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


More information about the libcxx-commits mailing list