Skip to content

Commit e7f9db6

Browse files
committed
Merge branch 'feature/use_invoke_swap' of https://github.com/Lastique/property_tree into feature/pr-109
2 parents 9d1288b + 98f33f8 commit e7f9db6

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

include/boost/property_tree/detail/ptree_implementation.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <boost/iterator/iterator_adaptor.hpp>
1515
#include <boost/iterator/reverse_iterator.hpp>
1616
#include <boost/assert.hpp>
17-
#include <boost/utility/swap.hpp>
17+
#include <boost/core/invoke_swap.hpp>
1818
#include <memory>
1919

2020
#if (defined(BOOST_MSVC) && \
@@ -211,7 +211,7 @@ namespace boost { namespace property_tree
211211
template<class K, class D, class C> inline
212212
void basic_ptree<K, D, C>::swap(basic_ptree<K, D, C> &rhs)
213213
{
214-
boost::swap(m_data, rhs.m_data);
214+
boost::core::invoke_swap(m_data, rhs.m_data);
215215
// Void pointers, no ADL necessary
216216
std::swap(m_children, rhs.m_children);
217217
}

include/boost/property_tree/detail/xml_parser_write.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
#include <boost/property_tree/ptree.hpp>
1515
#include <boost/property_tree/detail/xml_parser_utils.hpp>
16+
#include <boost/optional/optional.hpp>
1617
#include <string>
1718
#include <ostream>
1819
#include <iomanip>

include/boost/property_tree/id_translator.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include <boost/property_tree/ptree_fwd.hpp>
1515

16-
#include <boost/optional.hpp>
16+
#include <boost/optional/optional.hpp>
1717
#include <string>
1818

1919
namespace boost { namespace property_tree

include/boost/property_tree/ptree.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
#include <boost/multi_index/sequenced_index.hpp>
2424
#include <boost/multi_index/ordered_index.hpp>
2525
#include <boost/multi_index/member.hpp>
26-
#include <boost/utility/enable_if.hpp>
26+
#include <boost/core/enable_if.hpp>
2727
#include <boost/throw_exception.hpp>
28-
#include <boost/optional.hpp>
28+
#include <boost/optional/optional.hpp>
2929
#include <utility> // for std::pair
3030

3131
namespace boost { namespace property_tree

include/boost/property_tree/stream_translator.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
#include <boost/property_tree/ptree_fwd.hpp>
1515

16-
#include <boost/optional.hpp>
16+
#include <boost/optional/optional.hpp>
1717
#include <boost/optional/optional_io.hpp>
18-
#include <boost/utility/enable_if.hpp>
18+
#include <boost/core/enable_if.hpp>
1919
#include <boost/type_traits/decay.hpp>
2020
#include <boost/type_traits/integral_constant.hpp>
2121
#include <sstream>

include/boost/property_tree/string_path.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <boost/static_assert.hpp>
2020
#include <boost/assert.hpp>
2121
#include <boost/type_traits/is_same.hpp>
22-
#include <boost/optional.hpp>
22+
#include <boost/optional/optional.hpp>
2323
#include <boost/throw_exception.hpp>
2424
#include <algorithm>
2525
#include <string>

0 commit comments

Comments
 (0)