aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/array.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/array.h b/common/array.h
index ff32d3d94c..e5434091fb 100644
--- a/common/array.h
+++ b/common/array.h
@@ -252,11 +252,11 @@ public:
_size = newSize;
}
- void assign(const T *srcBegin, const T *srcEnd) {
- resize(distance(srcBegin, srcEnd)); //fixme: ineffective?
+ void assign(const_iterator first, const_iterator last) {
+ resize(distance(first, last)); // FIXME: ineffective?
T *dst = _storage;
- while(srcBegin != srcEnd)
- *dst++ = *srcBegin++;
+ while (first != last)
+ *dst++ = *first++;
}
protected: