This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: vector<bool> _M_start and 0 offset
On Mon, 17 Sep 2018, François Dumont wrote:
Note that if
https://gcc.gnu.org/ml/libstdc++/2018-09/msg00052.html
was accepted we could perhaps achieve the same result by adding:
__glibcxx_assert(_M_start._M_offset == 0);
Yes, I thought about it (well __builtin_unreachable, not
__glibcxx_assert). I don't really care which alternative we use. The
ultimate goal is to change _M_start so it doesn't include an offset, in
which case the code will look close to what I posted.
--
Marc Glisse