mirror of
https://github.com/boostorg/smart_ptr.git
synced 2026-02-15 01:12:24 +00:00
Added shared_array constructor from nullptr, per #8894.
This commit is contained in:
@@ -61,6 +61,14 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
#if !defined( BOOST_NO_CXX11_NULLPTR )
|
||||
|
||||
shared_array( boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT : px( 0 ), pn()
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
template<class Y>
|
||||
explicit shared_array( Y * p ): px( p ), pn( p, checked_array_deleter<Y>() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user