Support allocation_ptr of const and volatile types

This commit is contained in:
Glen Fernandes committed 2019-05-04 09:43:11 -04:00
1 parent 872bf10347
commit 4742143605
2 files changed
+28 -5

No files matched your search

+18
View File
@@ -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)