Skip to content

Commit 4b6bd5f

Browse files
something
1 parent 61cc3cb commit 4b6bd5f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

libcxx/include/__tree

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,8 @@ public:
574574
__parent_ = std::__static_fancy_pointer_cast<__end_node_pointer>(__p);
575575
}
576576

577-
// template <typename... Args> constexpr __tree_node_base(Args && ... args) =default;
578-
_LIBCPP_HIDE_FROM_ABI __tree_node_base() = default;
579-
_LIBCPP_HIDE_FROM_ABI ~__tree_node_base() = default;
577+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 __tree_node_base() = default;
578+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 ~__tree_node_base() = default;
580579
__tree_node_base(__tree_node_base const&) = delete;
581580
__tree_node_base& operator=(__tree_node_base const&) = delete;
582581
};
@@ -593,8 +592,6 @@ public:
593592
template <class... _Args>
594593
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 __tree_node(_Args&&... __args)
595594
: __value_(std::forward<_Args>(__args)...) {}
596-
// TODO: libcxx26
597-
// _LIBCPP_CONSTEXPR_SINCE_CXX26 __tree_node(__node_value_type && args): __value_{args} { }
598595
~__tree_node() = delete;
599596
__tree_node(__tree_node const&) = delete;
600597
__tree_node& operator=(__tree_node const&) = delete;
@@ -859,6 +856,8 @@ public:
859856
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 __node_allocator& __node_alloc() _NOEXCEPT {
860857
return __node_alloc_;
861858
}
859+
private:
860+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 const __node_allocator& __node_alloc() const _NOEXCEPT { return __node_alloc_; }
862861

863862
public:
864863
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 allocator_type __alloc() const _NOEXCEPT {

0 commit comments

Comments
 (0)