forked from boostorg/move
Fixed Trac #12920 ("movelib::unique_ptr: incorrect pointer type for nested array")
This commit is contained in:
@@ -75,6 +75,17 @@ void test()
|
||||
typedef bml::unique_ptr<int[5], Deleter> P;
|
||||
BOOST_STATIC_ASSERT((bmupmu::is_same<P::pointer, Deleter::pointer>::value));
|
||||
}
|
||||
//Unbounded array of bounded array unique_ptr
|
||||
{
|
||||
typedef int int_5_t [5];
|
||||
typedef bml::unique_ptr<int_5_t[]> P;
|
||||
BOOST_STATIC_ASSERT((bmupmu::is_same<P::pointer, int_5_t*>::value));
|
||||
}
|
||||
{
|
||||
typedef int int_5_t [5];
|
||||
typedef bml::unique_ptr<int_5_t[], Deleter> P;
|
||||
BOOST_STATIC_ASSERT((bmupmu::is_same<P::pointer, Deleter::pointer>::value));
|
||||
}
|
||||
}
|
||||
|
||||
} //namespace unique_ptr_pointer_type {
|
||||
|
||||
Reference in New Issue
Block a user