Pass functor as non-const.