Author: faridz
Date: Mon Jun 23 06:46:51 2008
New Revision: 670570
URL: http://svn.apache.org/viewvc?rev=670570&view=rev
Log:
2008-06-23 Farid Zaripov <[EMAIL PROTECTED]>
STDCXX-972
* include/vector: Added definitions of the std::operator+() for
vector<bool>::iterator and vector<bool>::const_iterator types.
Modified:
stdcxx/branches/4.2.x/include/vector
Modified: stdcxx/branches/4.2.x/include/vector
URL:
http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/vector?rev=670570&r1=670569&r2=670570&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/include/vector (original)
+++ stdcxx/branches/4.2.x/include/vector Mon Jun 23 06:46:51 2008
@@ -956,6 +956,11 @@
reference operator[] (difference_type __i) {
return *(*this + __i);
}
+
+ friend iterator operator+ (difference_type __i,
+ const iterator &__x) {
+ return __x + __i;
+ }
};
class const_iterator
@@ -1025,6 +1030,11 @@
const_reference operator[] (difference_type __i) {
return *(*this + __i);
}
+
+ friend const_iterator operator+ (difference_type __i,
+ const const_iterator &__x) {
+ return __x + __i;
+ }
};
#ifndef _RWSTD_NO_CLASS_PARTIAL_SPEC