now "FieldFunc" is a std::function so it can accept generic functors.