]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/spirit/home/lex/lexer/lexertl/generate_static.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / spirit / home / lex / lexer / lexertl / generate_static.hpp
index 6a07ffde0ab0b12c4b2d7e0eb70648e042d4b9e9..b2e7561b1183a9c25ca4d2a2d0b62a24f40f0a60 100644 (file)
@@ -19,7 +19,6 @@
 #include <boost/spirit/home/support/detail/lexer/debug.hpp>
 #include <boost/spirit/home/lex/lexer/lexertl/static_version.hpp>
 #include <boost/algorithm/string.hpp>
-#include <boost/lexical_cast.hpp>
 #include <boost/scoped_array.hpp>
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -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<std::basic_string<Char> >(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";
@@ -911,7 +908,6 @@ namespace boost { namespace spirit { namespace lex { namespace lexertl
         os_ << "#if !defined(BOOST_SPIRIT_LEXER_NEXT_TOKEN_" << guard << ")\n";
         os_ << "#define BOOST_SPIRIT_LEXER_NEXT_TOKEN_" << guard << "\n\n";
 
-        os_ << "#include <boost/detail/iterator.hpp>\n";
         os_ << "#include <boost/spirit/home/support/detail/lexer/char_traits.hpp>\n\n";
 
         generate_delimiter(os_);