Skip to content

Commit

Permalink
Merge pull request #63 from Flamefire/invoke_swap
Browse files Browse the repository at this point in the history
Use boost::core::invoke_swap instead of deprecated boost::swap
  • Loading branch information
apolukhin authored Oct 20, 2023
2 parents 1557481 + df0a119 commit 10aa54e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/boost/dll/detail/posix/shared_library_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -177,7 +177,7 @@ class shared_library_impl {
}

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 {
Expand Down
4 changes: 2 additions & 2 deletions include/boost/dll/detail/windows/shared_library_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -123,7 +123,7 @@ class shared_library_impl {
}

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 {
Expand Down

0 comments on commit 10aa54e

Please sign in to comment.