Commit 372110dd authored by Roger Kaeppeli's avatar Roger Kaeppeli
Browse files

Fix operator=

parent f5b24b11
......@@ -58,11 +58,11 @@ class etvector {
const etvector& operator=(const X<L,Op,R>& v) {
for (int i=0; i<size(); ++i) {
p_[i] = v[i];
return *this;
}
return *this;
}
// size
size_type size() const { return sz_;}
size_type size() const { return sz_; }
// subscript operator
value_type operator[](size_type i) const { return p_[i]; }
reference operator[](size_type i) { return p_[i]; }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment