Problem with operator= in template

I am trying to write operator= in a template class but it can not recognize it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  template <class T>
class Matrix
{
	int i, j;//rows and columns
	T **p;
public:
	// I have eleminated constructors and destructors,not imported
	Matrica& operator=(const Matrica& m);



};



template<class T>
 Matrica & Matrica<T>::operator=(const Matrica & m)//this line underlined red in compiler
{
	// can not see anything from class
}



Last edited on
The name of the class is Matrix, not Matrica.
Yeah, thanks.
Topic archived. No new replies allowed.