Skip to content

Commit

Permalink
Switch to boost::core::invoke_swap.
Browse files Browse the repository at this point in the history
boost::swap is deprecated and will be removed. Use boost::core::invoke_swap
as a replacement.
  • Loading branch information
Lastique committed Sep 2, 2023
1 parent 28ba36f commit becbd39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/integer/extended_euclidean.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <limits>
#include <stdexcept>
#include <boost/throw_exception.hpp>
#include <boost/core/swap.hpp>
#include <boost/core/invoke_swap.hpp>
#include <boost/core/enable_if.hpp>

namespace boost { namespace integer {
Expand Down Expand Up @@ -38,7 +38,7 @@ extended_euclidean(Z m, Z n)
if (m < n)
{
swapped = true;
boost::swap(m, n);
boost::core::invoke_swap(m, n);
}
Z u0 = m;
Z u1 = 1;
Expand Down

0 comments on commit becbd39

Please sign in to comment.