mirror of
https://github.com/boostorg/property_tree.git
synced 2026-02-20 02:52:10 +00:00
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:
@@ -14,7 +14,7 @@
|
||||
#include <boost/iterator/iterator_adaptor.hpp>
|
||||
#include <boost/iterator/reverse_iterator.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/utility/swap.hpp>
|
||||
#include <boost/core/invoke_swap.hpp>
|
||||
#include <memory>
|
||||
|
||||
#if (defined(BOOST_MSVC) && \
|
||||
@@ -211,7 +211,7 @@ namespace boost { namespace property_tree
|
||||
template<class K, class D, class C> inline
|
||||
void basic_ptree<K, D, C>::swap(basic_ptree<K, D, C> &rhs)
|
||||
{
|
||||
boost::swap(m_data, rhs.m_data);
|
||||
boost::core::invoke_swap(m_data, rhs.m_data);
|
||||
// Void pointers, no ADL necessary
|
||||
std::swap(m_children, rhs.m_children);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user