From f57b4550209122fab7a1bb4cb2a2e590e125920f Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 4 Oct 2024 21:32:17 +0300 Subject: [PATCH] Remove uses of BOOST_STATIC_CONSTEXPR --- include/boost/smart_ptr/allocate_unique.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/smart_ptr/allocate_unique.hpp b/include/boost/smart_ptr/allocate_unique.hpp index 45aa3db..3e411ff 100644 --- a/include/boost/smart_ptr/allocate_unique.hpp +++ b/include/boost/smart_ptr/allocate_unique.hpp @@ -32,17 +32,17 @@ namespace detail { template struct sp_alloc_size { - BOOST_STATIC_CONSTEXPR std::size_t value = 1; + static constexpr std::size_t value = 1; }; template struct sp_alloc_size { - BOOST_STATIC_CONSTEXPR std::size_t value = sp_alloc_size::value; + static constexpr std::size_t value = sp_alloc_size::value; }; template struct sp_alloc_size { - BOOST_STATIC_CONSTEXPR std::size_t value = N * sp_alloc_size::value; + static constexpr std::size_t value = N * sp_alloc_size::value; }; template @@ -100,7 +100,7 @@ public: return p_; } - BOOST_STATIC_CONSTEXPR std::size_t size() noexcept { + static constexpr std::size_t size() noexcept { return 1; } @@ -194,7 +194,7 @@ public: return p_; } - BOOST_STATIC_CONSTEXPR std::size_t size() noexcept { + static constexpr std::size_t size() noexcept { return N; }