diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 977c9897..715ec932 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -835,7 +835,7 @@ public: nullptr, nullptr, holder); } - template using cast_op_type = cast_op_type; + template using cast_op_type = detail::cast_op_type; operator itype*() { return (type *) value; } operator itype&() { if (!value) throw reference_cast_error(); return *((itype *) value); }