diff --git a/include/pybind11/eigen.h b/include/pybind11/eigen.h index 00f0347a8..96daf48dd 100644 --- a/include/pybind11/eigen.h +++ b/include/pybind11/eigen.h @@ -133,7 +133,7 @@ struct type_caster::value>::t operator Type*() { return &value; } operator Type&() { return value; } -private: +protected: template ::type = 0> static PYBIND11_DESCR rows() { return _("m"); } template ::type = 0> @@ -143,7 +143,7 @@ private: template ::type = 0> static PYBIND11_DESCR cols() { return _(); } -private: +protected: Type value; }; @@ -269,7 +269,7 @@ struct type_caster::value>:: operator Type*() { return &value; } operator Type&() { return value; } -private: +protected: Type value; };