forked from boostorg/config
Update test for C++11 std::allocator to check that member rebind is a template alias. Update config headers to match.
This commit is contained in:
@ -134,7 +134,6 @@
|
|||||||
# define BOOST_NO_CXX11_HDR_MUTEX
|
# define BOOST_NO_CXX11_HDR_MUTEX
|
||||||
# define BOOST_NO_CXX11_HDR_RATIO
|
# define BOOST_NO_CXX11_HDR_RATIO
|
||||||
# define BOOST_NO_CXX11_HDR_THREAD
|
# define BOOST_NO_CXX11_HDR_THREAD
|
||||||
# define BOOST_NO_CXX11_ALLOCATOR
|
|
||||||
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -143,6 +142,7 @@
|
|||||||
#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 610
|
#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 610
|
||||||
# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
|
# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
|
||||||
# define BOOST_NO_CXX11_HDR_ATOMIC
|
# define BOOST_NO_CXX11_HDR_ATOMIC
|
||||||
|
# define BOOST_NO_CXX11_ALLOCATOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _CPPLIB_VER
|
#ifdef _CPPLIB_VER
|
||||||
|
@ -28,10 +28,14 @@ int test()
|
|||||||
std::allocator_arg_t aat;
|
std::allocator_arg_t aat;
|
||||||
std::uses_allocator<int, std::allocator<int> > ua;
|
std::uses_allocator<int, std::allocator<int> > ua;
|
||||||
std::allocator_traits<std::allocator<int> > at;
|
std::allocator_traits<std::allocator<int> > at;
|
||||||
|
std::allocator<int> ia;
|
||||||
|
std::allocator_traits<std::allocator<int> >::rebind_alloc<void*> ra(ia);
|
||||||
|
std::allocator<void*>* pva = &ra;
|
||||||
|
|
||||||
(void)aat;
|
(void)aat;
|
||||||
(void)ua;
|
(void)ua;
|
||||||
(void)at;
|
(void)at;
|
||||||
|
(void)pva;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user