diff --git a/libcxx/include/forward_list b/libcxx/include/forward_list index b14d2cb6c7803..b8e3d05588f96 100644 --- a/libcxx/include/forward_list +++ b/libcxx/include/forward_list @@ -620,8 +620,7 @@ inline void __forward_list_base<_Tp, _Alloc>::swap(__forward_list_base& __x) _NOEXCEPT_(!__node_traits::propagate_on_container_swap::value || __is_nothrow_swappable_v<__node_allocator>) #endif { - std::__swap_allocator( - __alloc(), __x.__alloc(), integral_constant()); + std::__swap_allocator(__alloc(), __x.__alloc()); using std::swap; swap(__before_begin()->__next_, __x.__before_begin()->__next_); } diff --git a/libcxx/include/vector b/libcxx/include/vector index 3aa23d8fc1e24..a858f458f4430 100644 --- a/libcxx/include/vector +++ b/libcxx/include/vector @@ -1821,8 +1821,7 @@ _LIBCPP_CONSTEXPR_SINCE_CXX20 void vector<_Tp, _Allocator>::swap(vector& __x) std::swap(this->__begin_, __x.__begin_); std::swap(this->__end_, __x.__end_); std::swap(this->__end_cap(), __x.__end_cap()); - std::__swap_allocator( - this->__alloc(), __x.__alloc(), integral_constant()); + std::__swap_allocator(this->__alloc(), __x.__alloc()); } template @@ -2820,8 +2819,7 @@ _LIBCPP_CONSTEXPR_SINCE_CXX20 void vector::swap(vector& __x) std::swap(this->__begin_, __x.__begin_); std::swap(this->__size_, __x.__size_); std::swap(this->__cap(), __x.__cap()); - std::__swap_allocator( - this->__alloc(), __x.__alloc(), integral_constant()); + std::__swap_allocator(this->__alloc(), __x.__alloc()); } template