Ticket #8381: karma_uint_gen.cpp

File karma_uint_gen.cpp, 338 bytes (added by Andrey Semashev, 10 years ago)

The code snippet demonstrating the error.

Line 
1#include <boost/spirit/include/karma_uint.hpp>
2#include <boost/spirit/include/karma_generate.hpp>
3
4namespace karma = boost::spirit::karma;
5
6int main(int, char*[])
7{
8 char buf[30];
9 char* p = buf;
10
11 typedef karma::uint_generator< unsigned int, 10 > uint_gen;
12 unsigned int value = 10;
13 karma::generate(p, uint_gen(), value);
14
15 return 0;
16}