BOOST_NO_CXX11_ALLOCATOR should be defined with libc++ in C++03 mode

This commit is contained in:
Glen Fernandes
2014-05-08 11:13:43 -07:00
parent 0b75ce0405
commit c89ac48295

View File

@ -23,6 +23,14 @@
# define BOOST_NO_CXX11_HDR_TUPLE
#endif
// BOOST_NO_CXX11_ALLOCATOR should imply no support for the C++11
// allocator model. The C++11 allocator model requires a conforming
// std::allocator_traits which is only possible with C++11 template
// aliases since members rebind_alloc and rebind_traits require it.
#if defined(_LIBCPP_HAS_NO_TEMPLATE_ALIASES)
# define BOOST_NO_CXX11_ALLOCATOR
#endif
//
// These appear to be unusable/incomplete so far:
//