Skip to content

Commit 25e5500

Browse files
committed
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.
1 parent ccb504c commit 25e5500

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/boost/dynamic_bitset/impl/dynamic_bitset.ipp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,10 +1332,10 @@ operator-( const dynamic_bitset< Block, Allocator > & x, const dynamic_bitset< B
13321332

13331333
template< typename Block, typename Allocator >
13341334
void
1335-
swap( dynamic_bitset< Block, Allocator > & left, dynamic_bitset< Block, Allocator > & right )
1336-
BOOST_DYNAMIC_BITSET_CPP17_OR_LATER( noexcept( noexcept( left.swap( right ) ) ) )
1335+
swap( dynamic_bitset< Block, Allocator > & a, dynamic_bitset< Block, Allocator > & b )
1336+
BOOST_DYNAMIC_BITSET_CPP17_OR_LATER( noexcept( noexcept( a.swap( b ) ) ) )
13371337
{
1338-
left.swap( right );
1338+
a.swap( b );
13391339
}
13401340

13411341
template< typename Block, typename Allocator >

0 commit comments

Comments
 (0)