| changeset 154 | 083cb82d97df |
| parent 99 | bfbb04d6683f |
| child 204 | e6cfa97ef258 |
1.1 --- a/sourcehook/sh_vector.h Tue Dec 06 08:18:49 2005 +0000 1.2 +++ b/sourcehook/sh_vector.h Tue Dec 06 09:10:42 2005 +0000 1.3 @@ -274,6 +274,15 @@ 1.4 clear(); 1.5 } 1.6 1.7 + CVector & operator =(const CVector<T> & other) 1.8 + { 1.9 + clear(); 1.10 + resize(other.size()); 1.11 + for (size_t i=0; i<other.size(); i++) 1.12 + m_Data[i] = other.at(i); 1.13 + return *this; 1.14 + } 1.15 + 1.16 // interface 1.17 size_t size() const 1.18 {