diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 535516b3..ed61c10f 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -1220,6 +1220,8 @@ class argument_loader { using indices = make_index_sequence; public: + argument_loader() : value() {} // Helps gcc-7 properly initialize value + static constexpr auto has_kwargs = std::is_same>::value; static constexpr auto has_args = has_kwargs || std::is_same>::value;