From b437867338777074af7c80a28f955555d5139515 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Tue, 24 May 2016 21:39:41 +0200 Subject: [PATCH] eigen.h: relax access to members --- include/pybind11/eigen.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; };