diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 8a652ca3f..881c9863d 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -125,8 +125,9 @@ public: typename = detail::enable_if_t::value>> // NOLINTNEXTLINE(google-explicit-constructor) cpp_function(Func &&f, Extra &&...extra) { - initialize( - std::forward(f), (detail::function_signature_t *) nullptr, std::forward(extra)...); + initialize(std::forward(f), + (detail::function_signature_t *) nullptr, + std::forward(extra)...); } /// Construct a cpp_function from a class method (non-const, no ref-qualifier)