From 5d0ec18a0c34c91a61b898a994aa6c0802ed5b77 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 2 Sep 2023 20:58:41 +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/tuple/detail/tuple_basic.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/tuple/detail/tuple_basic.hpp b/include/boost/tuple/detail/tuple_basic.hpp index 63565b6..ad488be 100644 --- a/include/boost/tuple/detail/tuple_basic.hpp +++ b/include/boost/tuple/detail/tuple_basic.hpp @@ -36,7 +36,7 @@ #include // needed for the assignment from pair to tuple #include // for std::size_t -#include +#include #include #include #include @@ -964,11 +964,11 @@ void swap(tuple& lhs, inline void swap(null_type&, null_type&) {} template inline void swap(cons& lhs, cons& rhs) { - ::boost::swap(lhs.head, rhs.head); + ::boost::core::invoke_swap(lhs.head, rhs.head); } template inline void swap(cons& lhs, cons& rhs) { - ::boost::swap(lhs.head, rhs.head); + ::boost::core::invoke_swap(lhs.head, rhs.head); ::boost::tuples::swap(lhs.tail, rhs.tail); } template