From 039a4f4346d974f0e00c81d350e6ca0264431f16 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 24 Feb 2010 12:44:11 +0000 Subject: [PATCH] + SMESH_Comment & operator=(const SMESH_Comment& c) { + _s << c.c_str() ; + this->string::operator=( _s.str() ); + return *this; + } + --- src/SMESH/SMESH_Comment.hxx | 6 ++++++ 1 file changed, 6 insertions(+) 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 ; -- 2.39.2