forked from boostorg/intrusive
Use of boost::adl_move_swap.
Replaced <algorithm> with <functional> where needed Added basic equal/lexicographical compare algorithms to avoid complex <algorithm> include and ADL problems in some compilers
This commit is contained in:
1 parent
55a3c8b9a5
commit
adda517544
19 files changed
+161
-126
No files matched your search
@@ -20,6 +20,7 @@
|
||||
#include <boost/intrusive/detail/mpl.hpp>
|
||||
#include <boost/intrusive/pointer_traits.hpp>
|
||||
#include <boost/core/no_exceptions_support.hpp>
|
||||
#include <boost/move/adl_move_swap.hpp>
|
||||
|
||||
template < typename T >
|
||||
class bounded_pointer;
|
||||
@@ -190,7 +191,7 @@ class bounded_reference
|
||||
|
||||
// the copy asop is shallow; we need swap overload to shuffle a vector of references
|
||||
friend void swap(bounded_reference& lhs, bounded_reference& rhs)
|
||||
{ std::swap(lhs.m_offset, rhs.m_offset); }
|
||||
{ ::boost::adl_move_swap(lhs.m_offset, rhs.m_offset); }
|
||||
|
||||
private:
|
||||
template <typename> friend class bounded_reference;
|
||||
|
||||
Reference in new issue
Block a user