Fix vector::_Temporary_value::_M_ptr
commit0085f3a821846b26eb224d71ccd8600fcdc28a6a
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Sep 2018 14:25:29 +0000 (3 14:25 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Sep 2018 14:25:29 +0000 (3 14:25 +0000)
treedca921548bea37d7126c0e8e74fee577384f544d
parentdc0e5150d2f47523e298c7b9f6dcff27012dd141
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264061 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_vector.h