This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] tr1::array fixups
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Sat, 16 Oct 2004 20:23:19 +0200
- Subject: Re: [v3] tr1::array fixups
- References: <20041016085055.6e041852.bkoz@redhat.com>
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.