Remove unneeded macro as Config defines BOOST_NOEXCEPT

This commit is contained in:
LeonineKing1199
2021-11-19 10:10:02 -08:00
parent e29f762116
commit fe439890e8

View File

@ -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<T>::operator=(static_cast<cxx11_allocator&&>(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<T>::operator=(static_cast<cxx11_allocator&&>(x));
return *this;