From 6984e6a4f2c99ec6208d4fb1e96bf2ee30167b5b Mon Sep 17 00:00:00 2001 From: LeonineKing1199 Date: Tue, 23 Nov 2021 10:57:26 -0800 Subject: [PATCH] Remove unnecessary move support --- test/objects/cxx11_allocator.hpp | 38 -------------------------------- 1 file changed, 38 deletions(-) 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