forked from boostorg/smart_ptr
Support allocation_ptr of const and volatile types
This commit is contained in:
1 parent
872bf10347
commit
4742143605
2 files changed
+28
-5
No files matched your search
@@ -17,18 +17,36 @@ void test_pointer(scalar)
|
||||
{
|
||||
BOOST_TEST_TRAIT_SAME(boost::allocation_ptr<int,
|
||||
boost::default_allocator<void> >::pointer, int*);
|
||||
BOOST_TEST_TRAIT_SAME(boost::allocation_ptr<const int,
|
||||
boost::default_allocator<void> >::pointer, int*);
|
||||
BOOST_TEST_TRAIT_SAME(boost::allocation_ptr<const volatile int,
|
||||
boost::default_allocator<void> >::pointer, int*);
|
||||
BOOST_TEST_TRAIT_SAME(boost::allocation_ptr<volatile int,
|
||||
boost::default_allocator<void> >::pointer, int*);
|
||||
}
|
||||
|
||||
void test_pointer(unbounded_array)
|
||||
{
|
||||
BOOST_TEST_TRAIT_SAME(boost::allocation_ptr<int[],
|
||||
boost::default_allocator<void> >::pointer, int*);
|
||||
BOOST_TEST_TRAIT_SAME(boost::allocation_ptr<const int[],
|
||||
boost::default_allocator<void> >::pointer, int*);
|
||||
BOOST_TEST_TRAIT_SAME(boost::allocation_ptr<const volatile int[],
|
||||
boost::default_allocator<void> >::pointer, int*);
|
||||
BOOST_TEST_TRAIT_SAME(boost::allocation_ptr<volatile int[],
|
||||
boost::default_allocator<void> >::pointer, int*);
|
||||
}
|
||||
|
||||
void test_pointer(bounded_array)
|
||||
{
|
||||
BOOST_TEST_TRAIT_SAME(boost::allocation_ptr<int[5],
|
||||
boost::default_allocator<void> >::pointer, int*);
|
||||
BOOST_TEST_TRAIT_SAME(boost::allocation_ptr<const int[5],
|
||||
boost::default_allocator<void> >::pointer, int*);
|
||||
BOOST_TEST_TRAIT_SAME(boost::allocation_ptr<const volatile int[5],
|
||||
boost::default_allocator<void> >::pointer, int*);
|
||||
BOOST_TEST_TRAIT_SAME(boost::allocation_ptr<volatile int[5],
|
||||
boost::default_allocator<void> >::pointer, int*);
|
||||
}
|
||||
|
||||
void test_element_type(scalar)
|
||||
|
||||
Reference in new issue
Block a user