]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/spirit/home/lex/qi/plain_token.hpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / boost / spirit / home / lex / qi / plain_token.hpp
index ebb4c18990d937c7ef0932673fbd0c6c99954bdc..d094ec9d52790c93d87350c3665b2ada8b3f8afa 100644 (file)
@@ -26,8 +26,8 @@
 #include <boost/mpl/and.hpp>
 #include <boost/type_traits/is_integral.hpp>
 #include <boost/type_traits/is_enum.hpp>
-#include <boost/lexical_cast.hpp>
 #include <iterator> // for std::iterator_traits
+#include <sstream>
 
 namespace boost { namespace spirit
 {
@@ -120,8 +120,9 @@ namespace boost { namespace spirit { namespace qi
         template <typename Context>
         info what(Context& /*context*/) const
         {
-            return info("token",
-                "token(" + boost::lexical_cast<utf8_string>(id) + ")");
+            std::stringstream ss;
+            ss << "token(" << id << ")";
+            return info("token", ss.str());
         }
 
         TokenId id;
@@ -173,12 +174,9 @@ namespace boost { namespace spirit { namespace qi
         template <typename Context>
         info what(Context& /*context*/) const
         {
-            return info("token_range"
-              , "token(" +
-                    boost::lexical_cast<utf8_string>(idmin) + ", " +
-                    boost::lexical_cast<utf8_string>(idmax) + ")"
-            );
-            return info("token_range");
+            std::stringstream ss;
+            ss << "token(" << idmin << ", " << idmax << ")";
+            return info("token_range", ss.str());
         }
 
         TokenId idmin, idmax;