I assume that isGreaterThan
is a member function and the thing you wanted is:
bool isGreaterThan(English_length&L)
{
if ( *this > L)
return true;
else
return false;
}
Comparing the object it is called on with the object being passed as argument. Or simpler:
bool isGreaterThan(English_length&L)
{
return *this > L
}