Salome HOME
OK thanks to INV !
[modules/med.git] / src / MEDCoupling / MEDCouplingRefCountObject.cxx
index c8de20ea996aef5ae3d3f85be783a7c5c690a308..443ae2cd8ff584b590f3cd78cd9cea3fec935eb7 100644 (file)
@@ -54,6 +54,15 @@ RefCountObject::RefCountObject(const RefCountObject& other):_cnt(1)
 {
 }
 
+/*!
+ * Do nothing here ! It is not a bug ( I hope :) ) because all subclasses that
+ * copies using operator= should not copy the ref counter of \a other !
+ */
+RefCountObject& RefCountObject::operator=(const RefCountObject& other)
+{
+  return *this;
+}
+
 bool RefCountObject::decrRef() const
 {
   bool ret=((--_cnt)==0);