From 50fed3f68fd0cef9aadaebef2b0871bc587976f7 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 3 Sep 2023 03:32:38 +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. --- include/boost/property_tree/detail/ptree_implementation.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/property_tree/detail/ptree_implementation.hpp b/include/boost/property_tree/detail/ptree_implementation.hpp index dd9fd37..257cd14 100644 --- a/include/boost/property_tree/detail/ptree_implementation.hpp +++ b/include/boost/property_tree/detail/ptree_implementation.hpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #if (defined(BOOST_MSVC) && \ @@ -211,7 +211,7 @@ namespace boost { namespace property_tree template inline void basic_ptree::swap(basic_ptree &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); }