This is the error:
"main.cpp": main.cpp passing `const HugeInt' as `this' argument of `bool HugeInt:perator==(const HugeInt&)' discards qualifiers at line 29
This is where the error occurs.
Code for overloaded functionCode:template <class T> bool isEqualTo( const T &left, const T &right ) { return ( left == right ); }
Anyone have a clue what's going on here. I don't really understand the error message so that's not helping me.Code:bool HugeInt::operator==( const HugeInt &op2 ) { for( int i = 29; i >= 0; i-- ){ if ( integer[i] != op2.integer[i]) return false; } return true; }



LinkBack URL
About LinkBacks
perator==(const HugeInt&)' discards qualifiers at line 29


