diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index 81dfaea13..a3e66728a 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -911,10 +911,11 @@ detail::vectorize_helper vectorize(Retur return vectorize(f, f); } -template auto vectorize(func &&f) -> decltype( - vectorize(std::forward(f), (typename detail::remove_class::type::operator())>::type *) nullptr)) { - return vectorize(std::forward(f), (typename detail::remove_class::type::operator())>::type *) nullptr); +template +auto vectorize(Func &&f) -> decltype( + vectorize(std::forward(f), (typename detail::remove_class::type::operator())>::type *) nullptr)) { + return vectorize(std::forward(f), (typename detail::remove_class::type::operator())>::type *) nullptr); } NAMESPACE_END(pybind11)