Add default_allocator allocate hint overload in C++03 mode

This commit is contained in:
Glen Fernandes committed 2021-12-04 14:41:23 -05:00
1 parent 8985ce604e
commit febc195093
3 files changed
+26

No files matched your search

+6
View File
@@ -108,6 +108,12 @@ struct default_allocator {
}
#endif
#if defined(BOOST_NO_CXX11_ALLOCATOR)
T* allocate(std::size_t n, const void*) {
return allocate(n);
}
#endif
#if (defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 60000) || \
defined(BOOST_NO_CXX11_ALLOCATOR)
template<class U, class V>