Skip to content

Commit becbd39

Browse files
committed
Switch to boost::core::invoke_swap.
boost::swap is deprecated and will be removed. Use boost::core::invoke_swap as a replacement.
1 parent 28ba36f commit becbd39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/integer/extended_euclidean.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <limits>
1010
#include <stdexcept>
1111
#include <boost/throw_exception.hpp>
12-
#include <boost/core/swap.hpp>
12+
#include <boost/core/invoke_swap.hpp>
1313
#include <boost/core/enable_if.hpp>
1414

1515
namespace boost { namespace integer {
@@ -38,7 +38,7 @@ extended_euclidean(Z m, Z n)
3838
if (m < n)
3939
{
4040
swapped = true;
41-
boost::swap(m, n);
41+
boost::core::invoke_swap(m, n);
4242
}
4343
Z u0 = m;
4444
Z u1 = 1;

0 commit comments

Comments
 (0)