allocator_traits<>::allocate_at_least has taken its allocator
by value, incorrectly. This patch makes it take its allocator
by reference, as specified.
libstdc++-v3/ChangeLog:
* include/bits/alloc_traits.h (allocate_at_least):
Take allocator argument by reference, per Standard.
* Returns `a.allocate_at_least(n)`.
*/
[[nodiscard]] static constexpr auto
- allocate_at_least(allocator_type __a, size_type __n)
+ allocate_at_least(allocator_type& __a, size_type __n)
-> allocation_result<pointer, size_type>
{ return __a.allocate_at_least(__n); }
#endif