Allow SWIG to handle const std::function&