Commit 471df861 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

3b20d41a92db4267c0ba13278f3885aba67e6c47 used to_string from C++11 standard...

3b20d41a92db4267c0ba13278f3885aba67e6c47 used to_string from C++11 standard which breaks the snapshot build. #1201
parent f32b24a5
......@@ -1361,7 +1361,9 @@ ModelTree::fixNestedParenthesis(ostringstream &output, map<string, string> &tmp_
it = tmp_paren_vars.find(val);
if (it == tmp_paren_vars.end())
{
varname = "paren32_tmp_var_" + to_string(i1++);
ostringstream ptvstr;
ptvstr << i1++;
varname = "paren32_tmp_var_" + ptvstr.str();
repstr = repstr + varname + " = " + val + ";\n";
tmp_paren_vars[val] = varname;
}
......@@ -1375,7 +1377,9 @@ ModelTree::fixNestedParenthesis(ostringstream &output, map<string, string> &tmp_
it = tmp_paren_vars.find(str1);
if (it == tmp_paren_vars.end())
{
varname = "paren32_tmp_var_" + to_string(i1++);
ostringstream ptvstr;
ptvstr << i1++;
varname = "paren32_tmp_var_" + ptvstr.str();
repstr = repstr + varname + " = " + str1 + ";\n";
}
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment