forked from boostorg/smart_ptr
Remove uses of boost::is_unbounded_array
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user