2 Copyright 2020 Glen Joseph Fernandes
5 Distributed under the Boost Software License, Version 1.0.
6 (http://www.boost.org/LICENSE_1_0.txt)
8 #include <boost/core/allocator_access.hpp>
9 #include <boost/core/is_same.hpp>
10 #include <boost/core/lightweight_test_trait.hpp>
15 typedef int* const_pointer
;
16 typedef int* const_void_pointer
;
23 #if !defined(BOOST_NO_CXX11_ALLOCATOR)
32 BOOST_TEST_TRAIT_TRUE((boost::core::is_same
<int*,
33 boost::allocator_const_void_pointer
<A1
<char> >::type
>));
34 #if !defined(BOOST_NO_CXX11_ALLOCATOR)
35 BOOST_TEST_TRAIT_TRUE((boost::core::is_same
<const void*,
36 boost::allocator_const_void_pointer
<A2
<int> >::type
>));
38 return boost::report_errors();