Switch to boost::core::invoke_swap.

boost::swap is deprecated and will be removed. Use boost::core::invoke_swap
as a replacement.
This commit is contained in:
Andrey Semashev
2023-09-02 19:54:18 +03:00
parent b90a92d46a
commit b65c5e279d

View File

@@ -36,7 +36,7 @@
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_pointer.hpp>
#include <boost/type_traits/is_integral.hpp>
#include <boost/swap.hpp>
#include <boost/core/invoke_swap.hpp>
#include <typeinfo>
#include <memory>
@@ -546,8 +546,8 @@ namespace ptr_container_detail
{ return const_reverse_iterator( this->begin() ); }
void swap( reversible_ptr_container& r ) // nothrow
{
boost::swap( get_clone_allocator(), r.get_clone_allocator() ); // nothrow
{
boost::core::invoke_swap( get_clone_allocator(), r.get_clone_allocator() ); // nothrow
c_.swap( r.c_ ); // nothrow
}