@@ -2017,7 +2017,7 @@ parse_number(const char* p,
2017
2017
std::integral_constant<char , First_> first,
2018
2018
std::integral_constant<number_precision, Numbers_> mode)
2019
2019
{
2020
- constexpr bool precise_parsing = mode == number_precision::precise;
2020
+ // constexpr bool precise_parsing = mode == number_precision::precise;
2021
2021
constexpr bool no_parsing = mode == number_precision::none;
2022
2022
2023
2023
// only one of these will be true if we are not resuming
@@ -2231,8 +2231,8 @@ parse_number(const char* p,
2231
2231
{begin, cs.used (begin)}, ec_)))
2232
2232
return fail (cs.begin ());
2233
2233
2234
- BOOST_IF_CONSTEXPR ( precise_parsing )
2235
- num_buf_.append ( begin, cs.used (begin) );
2234
+ // BOOST_IF_CONSTEXPR( precise_parsing )
2235
+ num_buf_.append ( begin, cs.used (begin) );
2236
2236
return maybe_suspend (
2237
2237
cs.begin (), state::num1, num);
2238
2238
}
@@ -2256,8 +2256,8 @@ parse_number(const char* p,
2256
2256
{begin, cs.used (begin)}, ec_)))
2257
2257
return fail (cs.begin ());
2258
2258
2259
- BOOST_IF_CONSTEXPR ( precise_parsing )
2260
- num_buf_.append ( begin, cs.used (begin) );
2259
+ // BOOST_IF_CONSTEXPR( precise_parsing )
2260
+ num_buf_.append ( begin, cs.used (begin) );
2261
2261
return suspend (cs.begin (), state::num2, num);
2262
2262
}
2263
2263
goto finish_int;
@@ -2291,8 +2291,8 @@ parse_number(const char* p,
2291
2291
{begin, cs.used (begin)}, ec_)))
2292
2292
return fail (cs.begin ());
2293
2293
2294
- BOOST_IF_CONSTEXPR ( precise_parsing )
2295
- num_buf_.append ( begin, cs.used (begin) );
2294
+ // BOOST_IF_CONSTEXPR( precise_parsing )
2295
+ num_buf_.append ( begin, cs.used (begin) );
2296
2296
return suspend (cs.begin (), state::num2, num);
2297
2297
}
2298
2298
goto finish_int;
@@ -2334,8 +2334,8 @@ parse_number(const char* p,
2334
2334
{begin, cs.used (begin)}, ec_)))
2335
2335
return fail (cs.begin ());
2336
2336
2337
- BOOST_IF_CONSTEXPR ( precise_parsing )
2338
- num_buf_.append ( begin, cs.used (begin) );
2337
+ // BOOST_IF_CONSTEXPR( precise_parsing )
2338
+ num_buf_.append ( begin, cs.used (begin) );
2339
2339
return suspend (cs.begin (), state::num3, num);
2340
2340
}
2341
2341
goto finish_dub;
@@ -2385,8 +2385,8 @@ parse_number(const char* p,
2385
2385
{begin, cs.used (begin)}, ec_)))
2386
2386
return fail (cs.begin ());
2387
2387
2388
- BOOST_IF_CONSTEXPR ( precise_parsing )
2389
- num_buf_.append ( begin, cs.used (begin) );
2388
+ // BOOST_IF_CONSTEXPR( precise_parsing )
2389
+ num_buf_.append ( begin, cs.used (begin) );
2390
2390
return maybe_suspend (
2391
2391
cs.begin (), state::num4, num);
2392
2392
}
@@ -2424,8 +2424,8 @@ parse_number(const char* p,
2424
2424
{begin, cs.used (begin)}, ec_)))
2425
2425
return fail (cs.begin ());
2426
2426
2427
- BOOST_IF_CONSTEXPR ( precise_parsing )
2428
- num_buf_.append ( begin, cs.used (begin) );
2427
+ // BOOST_IF_CONSTEXPR( precise_parsing )
2428
+ num_buf_.append ( begin, cs.used (begin) );
2429
2429
return suspend (cs.begin (), state::num5, num);
2430
2430
}
2431
2431
goto finish_dub;
@@ -2462,8 +2462,8 @@ parse_number(const char* p,
2462
2462
{begin, cs.used (begin)}, ec_)))
2463
2463
return fail (cs.begin ());
2464
2464
2465
- BOOST_IF_CONSTEXPR ( precise_parsing )
2466
- num_buf_.append ( begin, cs.used (begin) );
2465
+ // BOOST_IF_CONSTEXPR( precise_parsing )
2466
+ num_buf_.append ( begin, cs.used (begin) );
2467
2467
return suspend (cs.begin (), state::num6, num);
2468
2468
}
2469
2469
goto finish_int;
@@ -2502,8 +2502,8 @@ parse_number(const char* p,
2502
2502
{begin, cs.used (begin)}, ec_)))
2503
2503
return fail (cs.begin ());
2504
2504
2505
- BOOST_IF_CONSTEXPR ( precise_parsing )
2506
- num_buf_.append ( begin, cs.used (begin) );
2505
+ // BOOST_IF_CONSTEXPR( precise_parsing )
2506
+ num_buf_.append ( begin, cs.used (begin) );
2507
2507
return suspend (cs.begin (), state::num7, num);
2508
2508
}
2509
2509
// digit required
@@ -2540,8 +2540,8 @@ parse_number(const char* p,
2540
2540
{begin, cs.used (begin)}, ec_)))
2541
2541
return fail (cs.begin ());
2542
2542
2543
- BOOST_IF_CONSTEXPR ( precise_parsing )
2544
- num_buf_.append ( begin, cs.used (begin) );
2543
+ // BOOST_IF_CONSTEXPR( precise_parsing )
2544
+ num_buf_.append ( begin, cs.used (begin) );
2545
2545
return suspend (cs.begin (), state::num8, num);
2546
2546
}
2547
2547
goto finish_dub;
@@ -2591,8 +2591,8 @@ parse_number(const char* p,
2591
2591
{begin, cs.used (begin)}, ec_)))
2592
2592
return fail (cs.begin ());
2593
2593
2594
- BOOST_IF_CONSTEXPR ( precise_parsing )
2595
- num_buf_.append ( begin, cs.used (begin) );
2594
+ // BOOST_IF_CONSTEXPR( precise_parsing )
2595
+ num_buf_.append ( begin, cs.used (begin) );
2596
2596
return maybe_suspend (
2597
2597
cs.begin (), state::exp1, num);
2598
2598
}
@@ -2622,8 +2622,8 @@ parse_number(const char* p,
2622
2622
{begin, cs.used (begin)}, ec_)))
2623
2623
return fail (cs.begin ());
2624
2624
2625
- BOOST_IF_CONSTEXPR ( precise_parsing )
2626
- num_buf_.append ( begin, cs.used (begin) );
2625
+ // BOOST_IF_CONSTEXPR( precise_parsing )
2626
+ num_buf_.append ( begin, cs.used (begin) );
2627
2627
return suspend (cs.begin (), state::exp2 , num);
2628
2628
}
2629
2629
// digit required
@@ -2661,8 +2661,8 @@ parse_number(const char* p,
2661
2661
{begin, cs.used (begin)}, ec_)))
2662
2662
return fail (cs.begin ());
2663
2663
2664
- BOOST_IF_CONSTEXPR ( precise_parsing )
2665
- num_buf_.append ( begin, cs.used (begin) );
2664
+ // BOOST_IF_CONSTEXPR( precise_parsing )
2665
+ num_buf_.append ( begin, cs.used (begin) );
2666
2666
return suspend (cs.begin (), state::exp3, num);
2667
2667
}
2668
2668
}
@@ -2754,8 +2754,9 @@ parse_number(const char* p,
2754
2754
finish_dub:
2755
2755
double d;
2756
2756
std::size_t const size = cs.used (begin);
2757
- BOOST_ASSERT ( !num_buf_.size () || precise_parsing );
2758
- BOOST_IF_CONSTEXPR ( precise_parsing )
2757
+ // BOOST_ASSERT( !num_buf_.size() || precise_parsing );
2758
+ // BOOST_IF_CONSTEXPR( precise_parsing )
2759
+ BOOST_IF_CONSTEXPR ( !no_parsing )
2759
2760
{
2760
2761
char const * data = begin;
2761
2762
std::size_t full_size = size;
@@ -2775,12 +2776,12 @@ parse_number(const char* p,
2775
2776
}
2776
2777
else BOOST_IF_CONSTEXPR ( no_parsing )
2777
2778
d = 0 ;
2778
- else
2779
- d = detail::dec_to_float (
2780
- num.mant ,
2781
- num.bias + (num.frac ?
2782
- -num.exp : num.exp ),
2783
- num.neg );
2779
+ // else
2780
+ // d = detail::dec_to_float(
2781
+ // num.mant,
2782
+ // num.bias + (num.frac ?
2783
+ // -num.exp : num.exp),
2784
+ // num.neg);
2784
2785
if (BOOST_JSON_UNLIKELY (
2785
2786
! h_.on_double (d, {begin, size}, ec_)))
2786
2787
return fail (cs.begin ());
0 commit comments