vector<bool> _M_start and 0 offset
2018-10-02 Marc Glisse <marc.glisse@inria.fr> PR libstdc++/87258 * include/bits/stl_bvector.h (vector::begin(), vector::cbegin()): Rebuild _M_start with an explicit 0 offset. From-SVN: r264791
This commit is contained in:
parent
057cf66ca3
commit
86920074bf
|
@ -1,3 +1,9 @@
|
||||||
|
2018-10-02 Marc Glisse <marc.glisse@inria.fr>
|
||||||
|
|
||||||
|
PR libstdc++/87258
|
||||||
|
* include/bits/stl_bvector.h (vector::begin(), vector::cbegin()):
|
||||||
|
Rebuild _M_start with an explicit 0 offset.
|
||||||
|
|
||||||
2018-10-02 Jonathan Wakely <jwakely@redhat.com>
|
2018-10-02 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
* include/std/variant (__gen_vtable_impl::__visit_invoke): Call __get
|
* include/std/variant (__gen_vtable_impl::__visit_invoke): Call __get
|
||||||
|
|
|
@ -809,11 +809,11 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
|
||||||
|
|
||||||
iterator
|
iterator
|
||||||
begin() _GLIBCXX_NOEXCEPT
|
begin() _GLIBCXX_NOEXCEPT
|
||||||
{ return this->_M_impl._M_start; }
|
{ return iterator(this->_M_impl._M_start._M_p, 0); }
|
||||||
|
|
||||||
const_iterator
|
const_iterator
|
||||||
begin() const _GLIBCXX_NOEXCEPT
|
begin() const _GLIBCXX_NOEXCEPT
|
||||||
{ return this->_M_impl._M_start; }
|
{ return const_iterator(this->_M_impl._M_start._M_p, 0); }
|
||||||
|
|
||||||
iterator
|
iterator
|
||||||
end() _GLIBCXX_NOEXCEPT
|
end() _GLIBCXX_NOEXCEPT
|
||||||
|
@ -842,7 +842,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
|
||||||
#if __cplusplus >= 201103L
|
#if __cplusplus >= 201103L
|
||||||
const_iterator
|
const_iterator
|
||||||
cbegin() const noexcept
|
cbegin() const noexcept
|
||||||
{ return this->_M_impl._M_start; }
|
{ return const_iterator(this->_M_impl._M_start._M_p, 0); }
|
||||||
|
|
||||||
const_iterator
|
const_iterator
|
||||||
cend() const noexcept
|
cend() const noexcept
|
||||||
|
|
Loading…
Reference in New Issue