r275165 - in /branches/gcc-8-branch/libstdc++-v...

redi@gcc.gnu.org redi@gcc.gnu.org
Fri Aug 30 13:09:00 GMT 2019


Author: redi
Date: Fri Aug 30 13:09:36 2019
New Revision: 275165

URL: https://gcc.gnu.org/viewcvs?rev=275165&root=gcc&view=rev
Log:
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.

Backport from mainline
2018-09-03  Jonathan Wakely  <jwakely@redhat.com>

	* 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.

Modified:
    branches/gcc-8-branch/libstdc++-v3/ChangeLog
    branches/gcc-8-branch/libstdc++-v3/include/bits/stl_vector.h



More information about the Libstdc++-cvs mailing list