mirror of
https://github.com/boostorg/dll.git
synced 2026-07-21 13:13:30 +00:00
Merge pull request #63 from Flamefire/invoke_swap
Use boost::core::invoke_swap instead of deprecated boost::swap
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user