2
0
mirror of https://github.com/boostorg/core.git synced 2026-01-30 07:42:52 +00:00

Add default_allocator allocate hint overload in C++03 mode

This commit is contained in:
Glen Fernandes
2021-12-04 14:41:23 -05:00
parent 8985ce604e
commit febc195093
3 changed files with 26 additions and 0 deletions

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>