Added shared_array constructor from nullptr, per #8894.

This commit is contained in:
Peter Dimov
2013-12-12 01:22:51 +02:00
parent c103ace77a
commit a41b81f1c8
3 changed files with 122 additions and 1 deletions

View File

@@ -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>() )
{