diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 613742cf..55030f6d 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -521,7 +521,8 @@ public: template using cast_op_type = type; operator type() { - return type(first, second); + return type(first .operator typename type_caster::type>::template cast_op_type(), + second.operator typename type_caster::type>::template cast_op_type()); } protected: type_caster::type> first;