Author: faridz
Date: Mon Mar 31 08:31:40 2008
New Revision: 643025
URL: http://svn.apache.org/viewvc?rev=643025&view=rev
Log:
2008-03-27 Farid Zaripov <[EMAIL PROTECTED]>
* include/deque (operator-): Return difference between _C_cur only
if both of iterators are the end-iterators of the empty deque's.
Modified:
stdcxx/trunk/include/deque
Modified: stdcxx/trunk/include/deque
URL:
http://svn.apache.org/viewvc/stdcxx/trunk/include/deque?rev=643025&r1=643024&r2=643025&view=diff
==============================================================================
--- stdcxx/trunk/include/deque (original)
+++ stdcxx/trunk/include/deque Mon Mar 31 08:31:40 2008
@@ -280,8 +280,8 @@
typedef _TYPENAME _RWSTD_DEQUE_ITER(1)::pointer _Pointer1;
typedef _TYPENAME _RWSTD_DEQUE_ITER(2)::pointer _Pointer2;
- if (_Pointer1 () == __x._C_cur || _Pointer2 () == __y._C_cur) {
- // __x and/or __y is end-iterator of the empty deque
+ if (_Pointer1 () == __x._C_cur && _Pointer2 () == __y._C_cur) {
+ // __x and __y are end-iterator's of the empty deque's
return _DiffT (__x._C_cur - __y._C_cur);
}