Apply const qualifier to call operator of comparator class.