Ticket #12599: test.cpp
| File test.cpp, 439 bytes (added by , 6 years ago) |
|---|
| Line | |
|---|---|
| 1 | #include <boost/spirit/include/karma.hpp> |
| 2 | #include <iterator> |
| 3 | #include <string> |
| 4 | #include <limits> |
| 5 | #include <math.h> |
| 6 | |
| 7 | int main() { |
| 8 | std::string s; |
| 9 | std::back_insert_iterator<std::string> sink(s); |
| 10 | //boost::spirit::karma::generate(sink, std::numeric_limits<double>::denorm_min()); |
| 11 | //boost::spirit::karma::generate(sink, std::numeric_limits<double>::min()*1e-1); |
| 12 | boost::spirit::karma::generate(sink, std::nextafter(0.0, 1.0)); |
| 13 | return 0; |
| 14 | } |
