Skip to content

Commit

Permalink
Use boost::core::invoke_swap instead of deprecated boost::swap
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Sep 11, 2023
1 parent 1557481 commit 8988f82
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 8988f82

Please sign in to comment.