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:
 
template <class T>
bool isEqualTo( const T &left, const T &right )
{
  return ( left == right );
}
Code for overloaded function

Code:
 
bool HugeInt::operator==( const HugeInt &op2 )
{
    for( int i = 29; i >= 0; i-- ){
      if ( integer[i] != op2.integer[i])
         return false;
    }
    return true;
}
Anyone have a clue what's going on here. I don't really understand the error message so that's not helping me.