#include #include #include #include #include int main( int argc, char** argv ) { namespace karma = boost::spirit::karma; karma::real_generator< int > real_; std::string output; std::back_insert_iterator< std::string > sink = std::back_inserter( output ); karma::generate( sink, karma::double_ << real_, 12345., 12345 ); return 0; }