Salome HOME
Win32 Porting.
[modules/smesh.git] / src / SMESH / SMESH_Comment.hxx
index 9385dab547097e424665565256cc3acc3f1b6814..9e2a18425acae55492706274fdb41f7aaf8d95f8 100644 (file)
 # include <string>
 # include <sstream>
 
-using namespace std;
-
 /*!
  * \brief Class to generate string from any type
  */
-class SMESH_Comment : public string
+class SMESH_Comment : public std::string
 {
-  ostringstream _s ;
+  std::ostringstream _s ;
 
 public :
 
-  SMESH_Comment():string("") {}
+  SMESH_Comment(): std::string("") {}
 
-  SMESH_Comment(const SMESH_Comment& c):string() {
+  SMESH_Comment(const SMESH_Comment& c): std::string() {
     _s << c.c_str() ;
-    this->string::operator=( _s.str() );
+    this->std::string::operator=( _s.str() );
   }
 
   template <class T>
   SMESH_Comment( const T &anything ) {
     _s << anything ;
-    this->string::operator=( _s.str() );
+    this->std::string::operator=( _s.str() );
   }
 
   template <class T>
   SMESH_Comment & operator<<( const T &anything ) {
     _s << anything ;
-    this->string::operator=( _s.str() );
+    this->std::string::operator=( _s.str() );
     return *this ;
   }
 };