make operator== always take const arguments