diff --git a/example/qi/compiler_tutorial/calc8/compiler.cpp b/example/qi/compiler_tutorial/calc8/compiler.cpp index 4e339c07d..2d8b3eb1b 100644 --- a/example/qi/compiler_tutorial/calc8/compiler.cpp +++ b/example/qi/compiler_tutorial/calc8/compiler.cpp @@ -136,12 +136,12 @@ namespace client { namespace code_gen case op_load: line += " op_load "; - line += boost::lexical_cast(locals[*pc++]); + line += locals[*pc++]; break; case op_store: line += " op_store "; - line += boost::lexical_cast(locals[*pc++]); + line += locals[*pc++]; break; case op_int: diff --git a/example/qi/compiler_tutorial/conjure1/compiler.cpp b/example/qi/compiler_tutorial/conjure1/compiler.cpp index 133e0ab59..22a036d4e 100644 --- a/example/qi/compiler_tutorial/conjure1/compiler.cpp +++ b/example/qi/compiler_tutorial/conjure1/compiler.cpp @@ -135,12 +135,12 @@ namespace client { namespace code_gen case op_load: line += " op_load "; - line += boost::lexical_cast(locals[*pc++]); + line += locals[*pc++]; break; case op_store: line += " op_store "; - line += boost::lexical_cast(locals[*pc++]); + line += locals[*pc++]; break; case op_int: diff --git a/example/qi/compiler_tutorial/conjure2/compiler.cpp b/example/qi/compiler_tutorial/conjure2/compiler.cpp index 540554137..87459b355 100644 --- a/example/qi/compiler_tutorial/conjure2/compiler.cpp +++ b/example/qi/compiler_tutorial/conjure2/compiler.cpp @@ -136,12 +136,12 @@ namespace client { namespace code_gen case op_load: line += " op_load "; - line += boost::lexical_cast(locals[*pc++]); + line += locals[*pc++]; break; case op_store: line += " op_store "; - line += boost::lexical_cast(locals[*pc++]); + line += locals[*pc++]; break; case op_int: diff --git a/example/qi/compiler_tutorial/mini_c/compiler.cpp b/example/qi/compiler_tutorial/mini_c/compiler.cpp index add278fdc..5a17ee07a 100644 --- a/example/qi/compiler_tutorial/mini_c/compiler.cpp +++ b/example/qi/compiler_tutorial/mini_c/compiler.cpp @@ -135,12 +135,12 @@ namespace client { namespace code_gen case op_load: line += " op_load "; - line += boost::lexical_cast(locals[*pc++]); + line += locals[*pc++]; break; case op_store: line += " op_store "; - line += boost::lexical_cast(locals[*pc++]); + line += locals[*pc++]; break; case op_int: diff --git a/example/x3/calc/calc9/compiler.cpp b/example/x3/calc/calc9/compiler.cpp index 4ce8a4bcf..620fa22d5 100644 --- a/example/x3/calc/calc9/compiler.cpp +++ b/example/x3/calc/calc9/compiler.cpp @@ -8,7 +8,6 @@ #include "vm.hpp" #include #include -#include #include #include #include @@ -136,17 +135,17 @@ namespace client { namespace code_gen case op_load: line += " op_load "; - line += boost::lexical_cast(locals[*pc++]); + line += locals[*pc++]; break; case op_store: line += " op_store "; - line += boost::lexical_cast(locals[*pc++]); + line += locals[*pc++]; break; case op_int: line += " op_int "; - line += boost::lexical_cast(*pc++); + line += std::to_string(*pc++); break; case op_true: @@ -164,7 +163,7 @@ namespace client { namespace code_gen if (pos == code.size()) line += "end"; else - line += boost::lexical_cast(pos); + line += std::to_string(pos); jumps.insert(pos); } break; @@ -176,14 +175,14 @@ namespace client { namespace code_gen if (pos == code.size()) line += "end"; else - line += boost::lexical_cast(pos); + line += std::to_string(pos); jumps.insert(pos); } break; case op_stk_adj: line += " op_stk_adj "; - line += boost::lexical_cast(*pc++); + line += std::to_string(*pc++); break; } lines[address] = line; diff --git a/include/boost/spirit/home/lex/lexer/lexertl/generate_static.hpp b/include/boost/spirit/home/lex/lexer/lexertl/generate_static.hpp index 6a07ffde0..77c984473 100644 --- a/include/boost/spirit/home/lex/lexer/lexertl/generate_static.hpp +++ b/include/boost/spirit/home/lex/lexer/lexertl/generate_static.hpp @@ -19,7 +19,6 @@ #include #include #include -#include #include /////////////////////////////////////////////////////////////////////////////// @@ -156,9 +155,7 @@ namespace boost { namespace spirit { namespace lex { namespace lexertl os_ << "struct lexer" << suffix << "\n{\n"; os_ << " // version number and feature-set of compatible static lexer engine\n"; os_ << " enum\n"; - os_ << " {\n static_version = " - << boost::lexical_cast >(SPIRIT_STATIC_LEXER_VERSION) - << ",\n"; + os_ << " {\n static_version = " << SPIRIT_STATIC_LEXER_VERSION << ",\n"; os_ << " supports_bol = " << std::boolalpha << bol << ",\n"; os_ << " supports_eol = " << std::boolalpha << eol << "\n"; os_ << " };\n\n";