This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: deque fails to meet 23.2.1.3.4-5 causing invalid iterators and extra assignments
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: Steve LoBasso <slobasso at yahoo dot com>, libstdc++ at gcc dot gnu dot org
- Date: Tue, 23 Jan 2007 20:30:28 +0100
- Subject: Re: deque fails to meet 23.2.1.3.4-5 causing invalid iterators and extra assignments
- References: <20070123003221.87517.qmail@web51506.mail.yahoo.com> <45B6604E.3000804@suse.de>
Paolo Carlini wrote:
Coming then to your proposed solution, I don't like that it
effectively removes the nice idea of always copying the optimal
(minimum) number of elements: AFAICS, only comparing to (size() - __n)
/ 2 exactly achieves that.
Never mind, sorry, now I see that the two calculations should be
equivalent, only matter of taste...
I look forward for your other comments, then we can commit either solution.
Thanks again,
Paolo.