Use the same parameter names in the two declarations of boost::swap()

Reason: Fixing an error from MSVC 14.3 about different noexcept
specifications between the two declarations.
This commit is contained in:
Gennaro Prota
2025-08-12 10:16:59 +02:00
parent a7c9175201
commit e848c84da3

View File

@@ -1332,10 +1332,10 @@ operator-( const dynamic_bitset< Block, Allocator > & x, const dynamic_bitset< B
template< typename Block, typename Allocator >
void
swap( dynamic_bitset< Block, Allocator > & left, dynamic_bitset< Block, Allocator > & right )
BOOST_DYNAMIC_BITSET_CPP17_OR_LATER( noexcept( noexcept( left.swap( right ) ) ) )
swap( dynamic_bitset< Block, Allocator > & a, dynamic_bitset< Block, Allocator > & b )
BOOST_DYNAMIC_BITSET_CPP17_OR_LATER( noexcept( noexcept( a.swap( b ) ) ) )
{
left.swap( right );
a.swap( b );
}
template< typename Block, typename Allocator >