From: eap Date: Wed, 24 Feb 2010 12:44:11 +0000 (+0000) Subject: + SMESH_Comment & operator=(const SMESH_Comment& c) { X-Git-Tag: V5_1_4a1~69 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=039a4f4346d974f0e00c81d350e6ca0264431f16;p=modules%2Fsmesh.git + SMESH_Comment & operator=(const SMESH_Comment& c) { + _s << c.c_str() ; + this->string::operator=( _s.str() ); + return *this; + } + --- 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 ;