Code:
template <class T>
T operator++(T num)
{
     cout<<"In overload function"<<endl;
	 return T result = num++;
}

int main()
{
   int num=5;
   int result = operator++(num); //whats the problem with this???

}


Why does this fail to compile?