X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling%2FMCAuto.hxx;h=06f728620b0bc836c2dbe4f7631c21d5e80f5ff1;hb=e7835cba1eb17f50ef4e130c2cb8d0f54bc25083;hp=0fd3a97af004cee4ae4de7c19dbc9aec6509ea26;hpb=b3e28553eab4c76446ec4214ad4a8d71528905ab;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling/MCAuto.hxx b/src/MEDCoupling/MCAuto.hxx index 0fd3a97af..06f728620 100644 --- a/src/MEDCoupling/MCAuto.hxx +++ b/src/MEDCoupling/MCAuto.hxx @@ -85,6 +85,7 @@ namespace MEDCoupling { public: MCConstAuto(const MCConstAuto& other):_ptr(0) { referPtr(other._ptr); } + MCConstAuto(const typename MEDCoupling::MCAuto & other):_ptr(0) { referPtr( (const T*) other); } MCConstAuto(const T *ptr=0):_ptr(ptr) { } ~MCConstAuto() { destroyPtr(); } bool isNull() const { return _ptr==0; }