Merge pull request #63 from Flamefire/invoke_swap

Use boost::core::invoke_swap instead of deprecated boost::swap
This commit is contained in:
Antony Polukhin
2023-10-20 20:15:17 +03:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
@@ -14,7 +14,7 @@
#include <boost/dll/detail/posix/program_location_impl.hpp>
#include <boost/move/utility.hpp>
#include <boost/swap.hpp>
#include <boost/core/invoke_swap.hpp>
#include <boost/predef/os.h>
#include <dlfcn.h>
@@ -177,7 +177,7 @@ public:
}
void swap(shared_library_impl& rhs) BOOST_NOEXCEPT {
boost::swap(handle_, rhs.handle_);
boost::core::invoke_swap(handle_, rhs.handle_);
}
boost::dll::fs::path full_module_path(boost::dll::fs::error_code &ec) const {
@@ -15,7 +15,7 @@
#include <boost/dll/detail/windows/path_from_handle.hpp>
#include <boost/move/utility.hpp>
#include <boost/swap.hpp>
#include <boost/core/invoke_swap.hpp>
#include <boost/winapi/dll.hpp>
@@ -123,7 +123,7 @@ public:
}
void swap(shared_library_impl& rhs) BOOST_NOEXCEPT {
boost::swap(handle_, rhs.handle_);
boost::core::invoke_swap(handle_, rhs.handle_);
}
boost::dll::fs::path full_module_path(boost::dll::fs::error_code &ec) const {