Salome HOME
+ SMESH_Comment & operator=(const SMESH_Comment& c) {
authoreap <eap@opencascade.com>
Wed, 24 Feb 2010 12:44:11 +0000 (12:44 +0000)
committereap <eap@opencascade.com>
Wed, 24 Feb 2010 12:44:11 +0000 (12:44 +0000)
+    _s << c.c_str() ;
+    this->string::operator=( _s.str() );
+    return *this;
+  }
+

src/SMESH/SMESH_Comment.hxx

index d1d32b9e68e24efc769dbfd555039e03bf4e92c8..0090a4927675a83a3a426eeb78f32df8c1c276d0 100644 (file)
@@ -50,6 +50,12 @@ public :
     this->string::operator=( _s.str() );
   }
 
+  SMESH_Comment & operator=(const SMESH_Comment& c) {
+    _s << c.c_str() ;
+    this->string::operator=( _s.str() );
+    return *this;
+  }
+
   template <class T>
   SMESH_Comment( const T &anything ) {
     _s << anything ;