forked from boostorg/move
Fixed Trac #12920 ("movelib::unique_ptr: incorrect pointer type for nested array")
This commit is contained in:
1 parent
7c6e036240
commit
1dbc7bab5c
4 files changed
+36
-2
No files matched your search
@@ -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