summaryrefslogtreecommitdiff
path: root/libs/interprocess/test/heap_allocator_v1.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/interprocess/test/heap_allocator_v1.hpp')
-rw-r--r--libs/interprocess/test/heap_allocator_v1.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/interprocess/test/heap_allocator_v1.hpp b/libs/interprocess/test/heap_allocator_v1.hpp
index 58f604a98..2867f8da6 100644
--- a/libs/interprocess/test/heap_allocator_v1.hpp
+++ b/libs/interprocess/test/heap_allocator_v1.hpp
@@ -25,10 +25,7 @@
#include <boost/interprocess/detail/utilities.hpp>
#include <boost/interprocess/containers/version_type.hpp>
#include <boost/interprocess/exceptions.hpp>
-#include <memory>
-#include <algorithm>
-#include <cstddef>
-#include <stdexcept>
+#include <boost/move/adl_move_swap.hpp>
//!\file
//!Describes an heap_allocator_v1 that allocates portions of fixed size
@@ -141,7 +138,7 @@ class heap_allocator_v1
//!Swap segment manager. Does not throw. If each heap_allocator_v1 is placed in
//!different memory segments, the result is undefined.
friend void swap(self_t &alloc1, self_t &alloc2)
- { ipcdetail::do_swap(alloc1.mp_mngr, alloc2.mp_mngr); }
+ { ::boost::adl_move_swap(alloc1.mp_mngr, alloc2.mp_mngr); }
};
//!Equality test for same type of heap_allocator_v1