| 42 | |
| 43 | template<typename T> |
| 44 | MyVector<T> operator*(const MyVector<T>& a, const MyVector<T>& b) |
| 45 | { |
| 46 | MyVector<T> result(a.size()); |
| 47 | for(std::size_t s = 0; s <= a.size(); ++s) { |
| 48 | result[s] = a[s] + b[s]; |
| 49 | } |
| 50 | return result; |
| 51 | } |
| 52 | |
| 53 | vec_t Foo(const vec_t& a, const vec_t& b) |
| 54 | { |