]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix compilation on CentOS 6.4 and Debian 6.0
authormnt <mnt@opencascade.com>
Fri, 13 Jan 2017 09:54:30 +0000 (12:54 +0300)
committermnt <mnt@opencascade.com>
Fri, 13 Jan 2017 09:54:30 +0000 (12:54 +0300)
src/GEOMGUI/GEOMGUI_AnnotationAttrs.cxx

index 5ed3c497af2607501f64c004320fac08556b5cf1..081fb7341b0a6e6c0386f328f163268d3f2cac9d 100755 (executable)
@@ -32,6 +32,7 @@
 // STL includes
 #include <string>
 #include <vector>
+#include <sstream>
 
 IMPLEMENT_STANDARD_RTTIEXT( GEOMGUI_AnnotationAttrs, Standard_Transient )
 
@@ -40,7 +41,9 @@ namespace
   static const std::string PARAMETER_COUNT = "GEOMGUI_AnnotationAttrs_Count";
 
   std::string PARAMETER_I( const std::string& s, const int i ) {
-    return std::string( s ) + std::to_string( i );
+    std::stringstream ss;
+    ss << i;
+    return std::string( s ) + ss.str();
   }
   std::string PARAMETER_IS_VISIBLE( const int i ) {
     return PARAMETER_I( "GEOMGUI_AnnotationAttrs_IsVisible", i );