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 {
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
You can’t perform that action at this time.
0 commit comments