mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
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_RATIO
|
||||
# define BOOST_NO_CXX11_HDR_THREAD
|
||||
# define BOOST_NO_CXX11_ALLOCATOR
|
||||
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||
#endif
|
||||
|
||||
@ -143,6 +142,7 @@
|
||||
#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 610
|
||||
# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
|
||||
# define BOOST_NO_CXX11_HDR_ATOMIC
|
||||
# define BOOST_NO_CXX11_ALLOCATOR
|
||||
#endif
|
||||
|
||||
#ifdef _CPPLIB_VER
|
||||
|
@ -28,10 +28,14 @@ int test()
|
||||
std::allocator_arg_t aat;
|
||||
std::uses_allocator<int, std::allocator<int> > ua;
|
||||
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)ua;
|
||||
(void)at;
|
||||
(void)pva;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user