Skip to content

Commit 44ec79b

Browse files
committed
ci
1 parent 64673ed commit 44ec79b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libcxx/include/__flat_map/flat_map.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,9 @@ class flat_map {
263263
# if _LIBCPP_HAS_EXCEPTIONS
264264
} catch (...) {
265265
__other.clear();
266-
if constexpr (is_nothrow_move_constructible_v<_KeyContainer> && is_nothrow_move_constructible_v<_MappedContainer> &&
267-
is_nothrow_move_constructible_v<_Compare>) {
268-
// gcc does not like the `throw` keyword in a conditional noexcept function
269-
// split the move constructor into two
266+
// gcc does not like the `throw` keyword in a conditional noexcept function
267+
if constexpr (!(is_nothrow_move_constructible_v<_KeyContainer> &&
268+
is_nothrow_move_constructible_v<_MappedContainer> && is_nothrow_move_constructible_v<_Compare>)) {
270269
throw;
271270
}
272271
# endif // _LIBCPP_HAS_EXCEPTIONS

0 commit comments

Comments
 (0)