| 50 | } |
| 51 | |
| 52 | double |
| 53 | operator()(string_view s, parse_options const& po = {}) const |
| 54 | { |
| 55 | BOOST_TEST_CHECKPOINT(); |
| 56 | system::error_code ec; |
| 57 | stream_parser p({}, po); |
| 58 | p.write(s.data(), s.size(), ec); |
| 59 | if(BOOST_TEST(! ec)) |
| 60 | p.finish(ec); |
| 61 | if(! BOOST_TEST(! ec)) |
| 62 | return 0; |
| 63 | auto const jv = p.release(); |
| 64 | double const d = jv.as_double(); |
| 65 | grind_double(s, d, po); |
| 66 | return d; |
| 67 | } |
| 68 | }; |
| 69 | |
| 70 | bool |