diff --git a/src/SMESH/SMESH_Comment.hxx b/src/SMESH/SMESH_Comment.hxx index d1d32b9e6..0090a4927 100644 --- a/src/SMESH/SMESH_Comment.hxx +++ b/src/SMESH/SMESH_Comment.hxx @@ -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 SMESH_Comment( const T &anything ) { _s << anything ;