|
|
От: | Nexie | |
| Дата: | 05.04.07 03:52 | ||
| Оценка: | |||
class SampleClass
{
private:
double *m_Data;
public:
double& operator[](const int index) { return m_Data[index]; }
};
void f(const SampleClass& x)
{
SampleClass y;
int i,j; double a;
y[j] = y[j] + x[i]*a; // вот тут ОНО хочет оператор "+"
// ^
// E2094 'operator+' not implemented in type 'SampleClass' for arguments of type 'int'
}