From b65c5e279df6285167a5b0af9047b33d32d4c6eb Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 2 Sep 2023 19:54:18 +0300 Subject: [PATCH] Switch to boost::core::invoke_swap. boost::swap is deprecated and will be removed. Use boost::core::invoke_swap as a replacement. --- .../boost/ptr_container/detail/reversible_ptr_container.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/ptr_container/detail/reversible_ptr_container.hpp b/include/boost/ptr_container/detail/reversible_ptr_container.hpp index d0b0ca5..1ad0a58 100644 --- a/include/boost/ptr_container/detail/reversible_ptr_container.hpp +++ b/include/boost/ptr_container/detail/reversible_ptr_container.hpp @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include @@ -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 }