Skip to content

to_string is in std:: #382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ansi-c/ansi_c_entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ exprt::operandst build_function_environment(
for(const auto & p : parameters)
{
irep_idt base_name=p.get_base_name().empty()?
("argument#"+to_string(i)):p.get_base_name();
("argument#"+std::to_string(i)):p.get_base_name();
irep_idt identifier=id2string(goto_functionst::entry_point())+
"::"+id2string(base_name);

Expand Down
2 changes: 1 addition & 1 deletion src/goto-programs/graphml_witness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ void graphml_witnesst::operator()(const symex_target_equationt &equation)

const graphmlt::node_indext node=graphml.add_node();
graphml[node].node_name=
i2string(it->source.pc->location_number)+"."+i2string(step_nr);
std::to_string(it->source.pc->location_number)+"."+std::to_string(step_nr);
graphml[node].file=source_location.get_file();
graphml[node].line=source_location.get_line();
graphml[node].thread_nr=it->source.thread_nr;
Expand Down
5 changes: 3 additions & 2 deletions src/path-symex/path_symex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Author: Daniel Kroening, [email protected]

#include <util/arith_tools.h>
#include <util/simplify_expr.h>
#include <util/string2int.h>
#include <util/byte_operators.h>
#include <util/pointer_offset_size.h>
#include <util/expr_util.h>
Expand Down Expand Up @@ -368,7 +369,7 @@ void path_symext::symex_va_arg_next(
*/
if(has_prefix(id2string(id), base))
id=base
+i2string(
+std::to_string(
safe_string2unsigned(
std::string(id2string(id), base.size(), std::string::npos))
+1);
Expand Down Expand Up @@ -787,7 +788,7 @@ void path_symext::function_call_rec(
exprt rhs=*call_arguments_it;

irep_idt id=id2string(function_identifier)+"::va_arg"
+i2string(va_count);
+std::to_string(va_count);

symbolt symbol;
symbol.name=id;
Expand Down