Преглед изворни кода

Added typecast to prevent ambiguities in function overload resolution of std::string::insert

[SVN r16187]
John Maddock пре 23 година
родитељ
комит
5d9563a7fa
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      tools/regression/compiler_status.cpp

+ 2 - 2
tools/regression/compiler_status.cpp

@@ -233,7 +233,7 @@ namespace
           || line.find( search_name2 ) != string::npos ) )
         {
           if ( line.find( "# compiler_status<always_show_run_output>" )
-            != string::npos ) result.insert( 0, 1, '*' );
+            != string::npos ) result.insert( (std::string::size_type)0, (std::string::size_type)1, '*' );
           return result;
         }
       }
@@ -674,4 +674,4 @@ int cpp_main( int argc, char * argv[] ) // note name!
           ;
 
   return 0;
-}
+}

粤ICP备19079148号