diff --git a/test/objects/cxx11_allocator.hpp b/test/objects/cxx11_allocator.hpp index 0dc4ce24..3e5f11c8 100644 --- a/test/objects/cxx11_allocator.hpp +++ b/test/objects/cxx11_allocator.hpp @@ -179,17 +179,6 @@ namespace test detail::tracker.allocator_ref(); } -#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) - cxx11_allocator_base(cxx11_allocator_base&& x) BOOST_NOEXCEPT - { - tag_ = x.tag_; - selected_ = x.selected_; - - x.tag_ = -1; - x.selected_ = -1; - } -#endif - ~cxx11_allocator_base() { detail::tracker.allocator_unref(); } cxx11_allocator_base& operator=(cxx11_allocator_base const& x) @@ -199,17 +188,6 @@ namespace test return *this; } -#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) - cxx11_allocator_base& operator=( - cxx11_allocator_base&& x) BOOST_NOEXCEPT - { - tag_ = x.tag_; - selected_ = x.selected_; - - return *this; - } -#endif - pointer address(reference r) { return pointer(&r); } const_pointer address(const_reference r) { return const_pointer(&r); } @@ -300,14 +278,6 @@ namespace test return *this; } -#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) - cxx11_allocator& operator=(cxx11_allocator&& x) BOOST_NOEXCEPT - { - cxx11_allocator_base::operator=(static_cast(x)); - return *this; - } -#endif - // When not propagating swap, allocators are always equal // to avoid undefined behaviour. bool operator==(cxx11_allocator const& x) const @@ -357,14 +327,6 @@ namespace test return *this; } -#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) - cxx11_allocator& operator=(cxx11_allocator&& x) BOOST_NOEXCEPT - { - cxx11_allocator_base::operator=(static_cast(x)); - return *this; - } -#endif - // When not propagating swap, allocators are always equal // to avoid undefined behaviour. bool operator==(cxx11_allocator const& x) const