Skip to content

Commit 03a6a4a

Browse files
more clean
1 parent bfea79f commit 03a6a4a

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

libcxx/include/__tree

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,21 +1885,8 @@ __tree<_Tp, _Compare, _Allocator>::__construct_node(_Args&&... __args) {
18851885

18861886
#if _LIBCPP_STD_VER >= 26
18871887
if(__libcpp_is_constant_evaluated()) {
1888-
1889-
// fails-> insert_and_emplace_allocator_requirements.pass.cpp
1890-
// __node_traits::construct(__na, std::addressof(*__h), std::forward<_Args>(__args)...);
1891-
// std::__construct_at(std::addressof(*__h), __na, std::forward<_Args>(__args)...);
1892-
1893-
// TODO: check if this is correct, or we need to allocate more
1894-
std::__construct_at(std::addressof(*__h), std::forward<_Args>(__args)...);
1895-
18961888
// note: construction of subobject of object outside its lifetime is not allowed in a constant expression
1897-
1898-
// we do need to
1899-
// avoid instantiating anything other than allocator::construct(Args...)
1900-
// for container_test_types.h
1901-
// but I don't know how to placement new to avoid instantiation
1902-
1889+
std::__construct_at(std::addressof(*__h), std::forward<_Args>(__args)...);
19031890
} else
19041891
#endif
19051892
{

0 commit comments

Comments
 (0)