Remove uses of BOOST_STATIC_CONSTEXPR

This commit is contained in:
Peter Dimov
2024-10-04 21:32:17 +03:00
parent 8b22f5cb4f
commit f57b455020

View File

@@ -32,17 +32,17 @@ namespace detail {
template<class T> template<class T>
struct sp_alloc_size { struct sp_alloc_size {
BOOST_STATIC_CONSTEXPR std::size_t value = 1; static constexpr std::size_t value = 1;
}; };
template<class T> template<class T>
struct sp_alloc_size<T[]> { struct sp_alloc_size<T[]> {
BOOST_STATIC_CONSTEXPR std::size_t value = sp_alloc_size<T>::value; static constexpr std::size_t value = sp_alloc_size<T>::value;
}; };
template<class T, std::size_t N> template<class T, std::size_t N>
struct sp_alloc_size<T[N]> { struct sp_alloc_size<T[N]> {
BOOST_STATIC_CONSTEXPR std::size_t value = N * sp_alloc_size<T>::value; static constexpr std::size_t value = N * sp_alloc_size<T>::value;
}; };
template<class T> template<class T>
@@ -100,7 +100,7 @@ public:
return p_; return p_;
} }
BOOST_STATIC_CONSTEXPR std::size_t size() noexcept { static constexpr std::size_t size() noexcept {
return 1; return 1;
} }
@@ -194,7 +194,7 @@ public:
return p_; return p_;
} }
BOOST_STATIC_CONSTEXPR std::size_t size() noexcept { static constexpr std::size_t size() noexcept {
return N; return N;
} }