Skip to content

Commit

Permalink
Remove uses of BOOST_STATIC_CONSTEXPR
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Oct 4, 2024
1 parent 8b22f5c commit f57b455
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/boost/smart_ptr/allocate_unique.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ namespace detail {

template<class T>
struct sp_alloc_size {
BOOST_STATIC_CONSTEXPR std::size_t value = 1;
static constexpr std::size_t value = 1;
};

template<class 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>
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>
Expand Down Expand Up @@ -100,7 +100,7 @@ class sp_alloc_ptr {
return p_;
}

BOOST_STATIC_CONSTEXPR std::size_t size() noexcept {
static constexpr std::size_t size() noexcept {
return 1;
}

Expand Down Expand Up @@ -194,7 +194,7 @@ class sp_alloc_ptr<T[N], P> {
return p_;
}

BOOST_STATIC_CONSTEXPR std::size_t size() noexcept {
static constexpr std::size_t size() noexcept {
return N;
}

Expand Down

0 comments on commit f57b455

Please sign in to comment.