[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
================
@@ -572,7 +574,8 @@ public:
_LIBCPP_HIDE_FROM_ABI void __set_parent(pointer __p) { __parent_ = static_cast<__end_node_pointer>(__p); }
- ~__tree_node_base() = delete;
+ _LIBCPP_HIDE_FROM_ABI __tree_node_base() = default;
+ _LIBCPP_HIDE_FROM_ABI ~__tree_node_base() = default;
----------------
philnik777 wrote:
I think we can just remove this line. Possibly also the the default constructor?
https://github.com/llvm/llvm-project/pull/153908
More information about the libcxx-commits
mailing list