#include <boost/mpl/or.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
{
template <typename Context>
info what(Context& /*context*/) const
{
- return info("raw_token",
- "raw_token(" + boost::lexical_cast<utf8_string>(id) + ")");
+ std::stringstream ss;
+ ss << "raw_token(" << id << ")";
+ return info("raw_token", ss.str());
}
TokenId id;