From fe439890e8f93cf3e1c0cf4106370727941dcf55 Mon Sep 17 00:00:00 2001 From: LeonineKing1199 Date: Fri, 19 Nov 2021 10:10:02 -0800 Subject: [PATCH] Remove unneeded macro as Config defines `BOOST_NOEXCEPT` --- test/objects/cxx11_allocator.hpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/test/objects/cxx11_allocator.hpp b/test/objects/cxx11_allocator.hpp index 12ee6be6..0dc4ce24 100644 --- a/test/objects/cxx11_allocator.hpp +++ b/test/objects/cxx11_allocator.hpp @@ -13,12 +13,6 @@ #include "../helpers/fwd.hpp" #include "../helpers/memory.hpp" -#if defined(BOOST_NO_CXX11_NOEXCEPT) -#define BOOST_UNORDERED_NOEXCEPT -#else -#define BOOST_UNORDERED_NOEXCEPT noexcept -#endif - namespace test { struct allocator_false @@ -186,7 +180,7 @@ namespace test } #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) - cxx11_allocator_base(cxx11_allocator_base&& x) BOOST_UNORDERED_NOEXCEPT + cxx11_allocator_base(cxx11_allocator_base&& x) BOOST_NOEXCEPT { tag_ = x.tag_; selected_ = x.selected_; @@ -207,7 +201,7 @@ namespace test #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) cxx11_allocator_base& operator=( - cxx11_allocator_base&& x) BOOST_UNORDERED_NOEXCEPT + cxx11_allocator_base&& x) BOOST_NOEXCEPT { tag_ = x.tag_; selected_ = x.selected_; @@ -307,7 +301,7 @@ namespace test } #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) - cxx11_allocator& operator=(cxx11_allocator&& x) BOOST_UNORDERED_NOEXCEPT + cxx11_allocator& operator=(cxx11_allocator&& x) BOOST_NOEXCEPT { cxx11_allocator_base::operator=(static_cast(x)); return *this; @@ -364,7 +358,7 @@ namespace test } #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) - cxx11_allocator& operator=(cxx11_allocator&& x) BOOST_UNORDERED_NOEXCEPT + cxx11_allocator& operator=(cxx11_allocator&& x) BOOST_NOEXCEPT { cxx11_allocator_base::operator=(static_cast(x)); return *this;