Removing std:: from std::to_string and include for boost/lexical_cast

This commit is contained in:
Matías Aereal Aeón
2018-08-08 11:26:30 -03:00
parent 7dae58cbcc
commit e902ce1aa0
13 changed files with 31 additions and 35 deletions
+1 -1
View File
@@ -529,7 +529,7 @@ int CodeTransform::variableHeightDiff(solidity::assembly::Scope::Variable const&
if (heightDiff <= (_forSwap ? 1 : 0) || heightDiff > (_forSwap ? 17 : 16))
{
solUnimplemented(
"Variable inaccessible, too deep inside stack (" + boost::lexical_cast<string>(heightDiff) + ")"
"Variable inaccessible, too deep inside stack (" + to_string(heightDiff) + ")"
);
return 0;
}
+1 -1
View File
@@ -31,7 +31,7 @@ string NameDispenser::newName(string const& _prefix)
while (name.empty() || m_usedNames.count(name))
{
suffix++;
name = _prefix + "_" + std::to_string(suffix);
name = _prefix + "_" + to_string(suffix);
}
m_usedNames.insert(name);
return name;