File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1031,6 +1031,8 @@ public:
1031
1031
__sfinae_call_emplace_hint_unique (const_iterator __p, __get_node_value_type_t <_Tp>&& __value, false_type) {
1032
1032
// __emplace_hint_unique(__p, std::move(__value.first), std::move(__value.second));
1033
1033
// static_assert(false, "Can not emplace during constant evaluation if the key is `const MoveOnly` ");
1034
+ // TODO: somehow flag this code if it executes during compile time
1035
+
1034
1036
(void )__p;
1035
1037
(void )__value;
1036
1038
}
@@ -1053,11 +1055,11 @@ public:
1053
1055
#if _LIBCPP_STD_VER >= 26
1054
1056
if (__libcpp_is_constant_evaluated ()) {
1055
1057
// static_assert(std::same_as_v<decltype(__value.first), double>);
1056
- __emplace_hint_unique (__p, std::move (__value.first ), std::move (__value.second ));
1058
+ // __emplace_hint_unique(__p, std::move(__value.first), std::move(__value.second));
1057
1059
1058
- // __sfinae_call_emplace_hint_unique(__p, std::move(__value),
1059
- // integral_constant<bool, is_copy_constructible<decltype(__value.first)>::value >()
1060
- // );
1060
+ __sfinae_call_emplace_hint_unique (__p, std::move (__value),
1061
+ integral_constant<bool , is_copy_constructible<decltype (__value.first )>::value >()
1062
+ );
1061
1063
} else
1062
1064
#endif
1063
1065
{
You can’t perform that action at this time.
0 commit comments