File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
libcxx/include/__flat_map Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -263,10 +263,9 @@ class flat_map {
263
263
# if _LIBCPP_HAS_EXCEPTIONS
264
264
} catch (...) {
265
265
__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>)) {
270
269
throw ;
271
270
}
272
271
# endif // _LIBCPP_HAS_EXCEPTIONS
You can’t perform that action at this time.
0 commit comments