From 46f37b2f16576bf9e978b073ffa4ede65dccf303 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Sat, 4 Dec 2021 00:24:45 -0500 Subject: [PATCH] Make max_size noexcept --- include/boost/core/allocator_access.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/core/allocator_access.hpp b/include/boost/core/allocator_access.hpp index 37c2b7a..edf749d 100644 --- a/include/boost/core/allocator_access.hpp +++ b/include/boost/core/allocator_access.hpp @@ -551,7 +551,7 @@ allocator_destroy(A&, T* p) #if defined(BOOST_NO_CXX11_ALLOCATOR) template inline typename allocator_size_type::type -allocator_max_size(const A& a) +allocator_max_size(const A& a) BOOST_NOEXCEPT { return a.max_size(); } @@ -576,7 +576,7 @@ public: template inline typename std::enable_if::value, typename allocator_size_type::type>::type -allocator_max_size(const A& a) +allocator_max_size(const A& a) BOOST_NOEXCEPT { return a.max_size(); } @@ -584,7 +584,7 @@ allocator_max_size(const A& a) template inline typename std::enable_if::value, typename allocator_size_type::type>::type -allocator_max_size(const A&) +allocator_max_size(const A&) BOOST_NOEXCEPT { return (std::numeric_limits::type>::max)() / sizeof(typename A::value_type);