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:
jzmaddock
2014-02-06 13:29:59 +00:00
parent 9ea9842ace
commit 08392fd952
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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;
} }