uses_allocator.h
6.23 KB
-
Prevent __uses_alloc from holding dangling references · 318c48e3
* include/bits/uses_allocator.h (__use_alloc(const _Alloc&&)): Add deleted overload to prevent dangling references to rvalues. * include/experimental/memory_resource (polymorphic_allocator::construct): Do not call __use_alloc with rvalue arguments. From-SVN: r250019
Jonathan Wakely committed