my code:
Code:
#ifndef INTEGER_H
#define INTEGER_H
class Integer
{
private:
int number;
public:
Integer(); // Constructor
Integer(int num);
~Integer(); // Destructor
int getInt();
bool operator < (Integer);
int operator ++ ();
int operator -- ();
};
#endif
and the errors messages:
Code:
1>c: : error C2784: 'bool std::operator >(const std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'Integer'
1> c:\program files\microsoft visual studio 9.0\vc\include\xutility(2244) : see declaration of 'std::operator >'
1> : error C2784: 'bool std::operator >(const std::_Revranit<_RanIt,_Base> &,const std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'Integer'
1> c:\program files\microsoft visual studio 9.0\vc\include\xutility(2057) : see declaration of 'std::operator >'
1>: error C2784: 'bool std::operator >(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 'Integer'
1> c:\program files\microsoft visual studio 9.0\vc\include\utility(93) : see declaration of 'std::operator >'
1>: error C2676: binary '>' : 'Integer' does not define this operator or a conversion to a type acceptable to the predefined operator