You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (std::is_constant_evaluated() && std::is_copy_constructible_v<decltype(__value.first)>) {
1076
-
1077
-
// We create a sfinae wrapper method here, because if the __emplace_hint_unique method gets template instantiated within __insert_unique_from_orphaned_node, the code will fail to compile where the value is not copy_constructible for runtime execution as well; unless we use `if constexpr`.
1078
-
// Given the copy-constructible code path will be a performance regression, we want to restrict it to only execute during constant evaluation
1074
+
// We create a sfinae wrapper method here, because if the __emplace_hint_unique method gets template instantiated
1075
+
// within __insert_unique_from_orphaned_node, the code will fail to compile where the value is not
1076
+
// copy_constructible for runtime execution as well; unless we use `if constexpr`. Given the copy-constructible
1077
+
// code path will be a performance regression, we want to restrict it to only execute during constant evaluation
// we get around this by deleting __lhs and creating a new node in-place
1400
1396
// to avoid const_cast __lhs.first
1401
1397
1402
-
// We create a sfinae wrapper method here, because if the body of the true_type overload for __assign_value__sfinae() gets template instantiated within __assign_value,
1403
-
// the code will fail to compile where the value is not copy_constructible for runtime execution as well; unless we use `if constexpr`.
1404
-
// Given the copy-constructible code path will be a performance regression, we want to restrict it to only execute during constant evaluation
1398
+
// We create a sfinae wrapper method here, because if the body of the true_type overload for
1399
+
// __assign_value__sfinae() gets template instantiated within __assign_value, the code will fail to compile where
1400
+
// the value is not copy_constructible for runtime execution as well; unless we use `if constexpr`. Given the
1401
+
// copy-constructible code path will be a performance regression, we want to restrict it to only execute during
0 commit comments