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; }