Skip to content

Commit 92482b7

Browse files
cf
1 parent 664b3c6 commit 92482b7

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
@@ -29,8 +29,8 @@
2929
#include <__type_traits/copy_cvref.h>
3030
#include <__type_traits/enable_if.h>
3131
#include <__type_traits/invoke.h>
32-
#include <__type_traits/is_constant_evaluated.h>
3332
#include <__type_traits/is_const.h>
33+
#include <__type_traits/is_constant_evaluated.h>
3434
#include <__type_traits/is_constructible.h>
3535
#include <__type_traits/is_nothrow_assignable.h>
3636
#include <__type_traits/is_nothrow_constructible.h>
@@ -1165,8 +1165,7 @@ public:
11651165
__insert_unique_from_orphaned_node(const_iterator __p, __get_node_value_type_t<_Tp>&& __value) {
11661166
using __key_type = typename _NodeTypes::key_type;
11671167
// fails here for move_alloc.pass.cpp
1168-
if(__libcpp_is_constant_evaluated()) {
1169-
1168+
if (__libcpp_is_constant_evaluated()) {
11701169
// __node_allocator& __na = __value.__node_alloc();
11711170
// __node_traits::destroy(__na, std::addressof(__lhs));
11721171
// __node_traits::construct(__na, std::addressof(__lhs), std::move(__tmp));
@@ -1175,7 +1174,7 @@ public:
11751174
// __node_traits::construct(__na, std::addressof(__kk), std::move(__value.first));
11761175
__emplace_hint_unique(__p, std::move(__kk), std::move(__value.second));
11771176
} else {
1178-
__emplace_hint_unique(__p, const_cast<__key_type&&>(__value.first), std::move(__value.second));
1177+
__emplace_hint_unique(__p, const_cast<__key_type&&>(__value.first), std::move(__value.second));
11791178
}
11801179
}
11811180

@@ -1375,7 +1374,7 @@ private:
13751374
using __key_type = typename _NodeTypes::key_type;
13761375

13771376
if (__libcpp_is_constant_evaluated()) {
1378-
__get_node_value_type_t<value_type> __tmp {__rhs.first, __rhs.second};
1377+
__get_node_value_type_t<value_type> __tmp{__rhs.first, __rhs.second};
13791378
// const_cast is not allowed at constexpr time.
13801379
// we get around this by deleting and creating a new node value
13811380
__lhs.~__node_value_type();

0 commit comments

Comments
 (0)