diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index c77dfd0c5..95a9a4a7e 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -1256,7 +1256,7 @@ template argtypes { type_id()... }; + std::array argtypes { {type_id()...} }; throw cast_error("make_tuple(): unable to convert argument of type '" + argtypes[i] + "' to Python object"); #endif