https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87544

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
> allocator::max_size() is worse than useless

Fixed that for you.

https://cplusplus.github.io/LWG/lwg-active.html#3044
https://cplusplus.github.io/LWG/lwg-closed.html#197

For PR 78448 I recently changed std::vector<T, A>::max_size() so it won't
return anything greater than PTRDIFF_MAX, even if the allocator stupidly says
it can handle more than that. But the standard explicitly requires the
allocator to be stupid, so I'm not sure what more libstdc++ can do here.

Reply via email to