diff --git a/docs/advanced/cast/stl.rst b/docs/advanced/cast/stl.rst index ecd889ffb..ac6318f0e 100644 --- a/docs/advanced/cast/stl.rst +++ b/docs/advanced/cast/stl.rst @@ -61,8 +61,8 @@ for custom variant types: struct visit_helper { template static auto call(Args &&...args) - -> decltype(boost::apply_visitor(std::forward(args)...)) { - return boost::apply_visitor(std::forward(args)...); + -> decltype(boost::apply_visitor(args...)) { + return boost::apply_visitor(args...); } }; }} // namespace pybind11::detail