Remove uses of boost::is_unbounded_array

This commit is contained in:
Peter Dimov
2024-10-06 20:08:02 +03:00
parent b12e342c52
commit 9466e73cbe
6 changed files with 19 additions and 21 deletions
@@ -32,7 +32,7 @@ make_shared(const typename std::remove_extent<T>::type& value)
}
template<class T>
inline typename std::enable_if<is_unbounded_array<T>::value, shared_ptr<T> >::type
inline typename std::enable_if<detail::sp_is_unbounded_array<T>::value, shared_ptr<T> >::type
make_shared(std::size_t size)
{
return boost::allocate_shared<T>(boost::default_allocator<typename
@@ -40,7 +40,7 @@ make_shared(std::size_t size)
}
template<class T>
inline typename std::enable_if<is_unbounded_array<T>::value, shared_ptr<T> >::type
inline typename std::enable_if<detail::sp_is_unbounded_array<T>::value, shared_ptr<T> >::type
make_shared(std::size_t size, const typename std::remove_extent<T>::type& value)
{
return boost::allocate_shared<T>(boost::default_allocator<typename
@@ -56,7 +56,7 @@ make_shared_noinit()
}
template<class T>
inline typename std::enable_if<is_unbounded_array<T>::value, shared_ptr<T> >::type
inline typename std::enable_if<detail::sp_is_unbounded_array<T>::value, shared_ptr<T> >::type
make_shared_noinit(std::size_t size)
{
return boost::allocate_shared_noinit<T>(boost::default_allocator<typename