diff options
-rw-r--r-- | common/array.h | 8 |
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: |