Fix vector::_Temporary_value::_M_ptr
authorJonathan Wakely <jwakely@redhat.com>
Mon, 3 Sep 2018 14:25:29 +0000 (15:25 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 3 Sep 2018 14:25:29 +0000 (15:25 +0100)
commit7efe0dd0b43db1ac5070908290a3febfcfb73513
treedca921548bea37d7126c0e8e74fee577384f544d
parent83a840a91fb3281f8980eaacdb7b5377778da3bb
Fix vector::_Temporary_value::_M_ptr

The pointer argument to allocator_traits::construct and
allocator_traits::destroy should be a raw pointer, not the allocator's
pointer type. _Temporary_value::_M_ptr was returning the wrong type.

* include/bits/stl_vector.h (vector::_Temporary_value::_M_ptr):
Return raw pointer not allocator's pointer type.
(vector::_Temporary_value::_M_val): Use _M_ptr.

From-SVN: r264061
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_vector.h