[v3] tr1::array fixups
Paolo Carlini
pcarlini@suse.de
Sat Oct 16 18:26:00 GMT 2004
Benjamin Kosnik wrote:
> const_iterator
> end() const
>! { return reinterpret_cast<iterator>(&_M_instance[_S_index - 1]); }
>
By the way, a few days ago, I have noticed that end() - beg() == size()
- 1 != size(),
I think this is not ok: end() should point one-past-end, as always
happens with the
other containers...
Wouldn't be better just using (_M_instance + _S_index) ??
Paolo.
More information about the Libstdc++
mailing list