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

[SVN r16187]
This commit is contained in:
John Maddock 2002-11-10 11:58:22 +00:00
parent 3d7dcec927
commit 5d9563a7fa

View file

@ -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;
}
}