به این صورت تغییرش بده .
راستی سمیکولون هم یادت رفته آخر کلاس بنویسی .
و یه چیز دیگه . این نوع operator ها رو بصورت برگشت-با-مقدار مینویسند .
#include <iostream>
using namespace std;
template<typename _Type>
class MyClass
{
MyClass();
const MyClass<_Type> operator*(const MyClass<_Type> &inc);
};
template<typename _Type>
const MyClass<_Type> MyClass<_Type>::operator*(const MyClass<_Type> &inc) // very much errors
{
//something
}
int main ()
{
return 0;
}