Every time I try to set one array class type to another, I get an illigal operation. WHY!!!!!????????
The other "array" I'm equating it to is of the same type (int). So what's going on?Code:template <class T> class array { public: array(int input_size) { Data = new T[input_size]; for(int x = 0; x < size; x++) Data[x] = 0x0; size = input_size; } ~array() { delete [] Data; } T* Data; T &operator [] (int index) { return Data[index]; } int operator = (array other) { for(int x = 0; x < size; x++) Data[x] = other[x]; return 1; } private: int size; };