@@ -298,7 +298,7 @@ class boost_default_impl : public any_impl
298
298
while (repeat--)
299
299
{
300
300
p.reset ();
301
- error_code ec;
301
+ system :: error_code ec;
302
302
p.write (s.data (), s.size (), ec);
303
303
if (! ec)
304
304
p.finish (ec);
@@ -320,7 +320,7 @@ class boost_default_impl : public any_impl
320
320
321
321
FILE* f = fopen (fi.name .data (), " rb" );
322
322
323
- error_code ec;
323
+ system :: error_code ec;
324
324
while ( true )
325
325
{
326
326
std::size_t const sz = fread (s, 1 , sizeof (s), f);
@@ -412,7 +412,7 @@ class boost_pool_impl : public any_impl
412
412
{
413
413
monotonic_resource mr;
414
414
p.reset (&mr);
415
- error_code ec;
415
+ system :: error_code ec;
416
416
p.write (s.data (), s.size (), ec);
417
417
if (! ec)
418
418
p.finish (ec);
@@ -435,7 +435,7 @@ class boost_pool_impl : public any_impl
435
435
436
436
FILE* f = fopen (fi.name .data (), " rb" );
437
437
438
- error_code ec;
438
+ system :: error_code ec;
439
439
while ( true )
440
440
{
441
441
std::size_t const sz = fread (s, 1 , sizeof (s), f);
@@ -509,24 +509,24 @@ class boost_null_impl : public any_impl
509
509
constexpr static std::size_t max_key_size = std::size_t (-1 );
510
510
constexpr static std::size_t max_string_size = std::size_t (-1 );
511
511
512
- bool on_document_begin (error_code&) { return true ; }
513
- bool on_document_end (error_code&) { return true ; }
514
- bool on_object_begin (error_code&) { return true ; }
515
- bool on_object_end (std::size_t , error_code&) { return true ; }
516
- bool on_array_begin (error_code&) { return true ; }
517
- bool on_array_end (std::size_t , error_code&) { return true ; }
518
- bool on_key_part (string_view, std::size_t , error_code&) { return true ; }
519
- bool on_key ( string_view, std::size_t , error_code&) { return true ; }
520
- bool on_string_part (string_view, std::size_t , error_code&) { return true ; }
521
- bool on_string (string_view, std::size_t , error_code&) { return true ; }
522
- bool on_number_part (string_view, error_code&) { return true ; }
523
- bool on_int64 (std::int64_t , string_view, error_code&) { return true ; }
524
- bool on_uint64 (std::uint64_t , string_view, error_code&) { return true ; }
525
- bool on_double (double , string_view, error_code&) { return true ; }
526
- bool on_bool (bool , error_code&) { return true ; }
527
- bool on_null (error_code&) { return true ; }
528
- bool on_comment_part (string_view, error_code&) { return true ; }
529
- bool on_comment (string_view, error_code&) { return true ; }
512
+ bool on_document_begin (system:: error_code&) { return true ; }
513
+ bool on_document_end (system:: error_code&) { return true ; }
514
+ bool on_object_begin (system:: error_code&) { return true ; }
515
+ bool on_object_end (std::size_t , system:: error_code&) { return true ; }
516
+ bool on_array_begin (system:: error_code&) { return true ; }
517
+ bool on_array_end (std::size_t , system:: error_code&) { return true ; }
518
+ bool on_key_part (string_view, std::size_t , system:: error_code&) { return true ; }
519
+ bool on_key ( string_view, std::size_t , system:: error_code&) { return true ; }
520
+ bool on_string_part (string_view, std::size_t , system:: error_code&) { return true ; }
521
+ bool on_string (string_view, std::size_t , system:: error_code&) { return true ; }
522
+ bool on_number_part (string_view, system:: error_code&) { return true ; }
523
+ bool on_int64 (std::int64_t , string_view, system:: error_code&) { return true ; }
524
+ bool on_uint64 (std::uint64_t , string_view, system:: error_code&) { return true ; }
525
+ bool on_double (double , string_view, system:: error_code&) { return true ; }
526
+ bool on_bool (bool , system:: error_code&) { return true ; }
527
+ bool on_null (system:: error_code&) { return true ; }
528
+ bool on_comment_part (string_view, system:: error_code&) { return true ; }
529
+ bool on_comment (string_view, system:: error_code&) { return true ; }
530
530
};
531
531
532
532
basic_parser<handler> p_;
@@ -546,7 +546,7 @@ class boost_null_impl : public any_impl
546
546
write (
547
547
char const * data,
548
548
std::size_t size,
549
- error_code& ec)
549
+ system:: error_code& ec)
550
550
{
551
551
auto const n = p_.write_some (
552
552
false , data, size, ec);
@@ -559,14 +559,14 @@ class boost_null_impl : public any_impl
559
559
write_some (
560
560
char const * data,
561
561
std::size_t size,
562
- error_code& ec)
562
+ system:: error_code& ec)
563
563
{
564
564
return p_.write_some (
565
565
true , data, size, ec);
566
566
}
567
567
568
568
void
569
- finish (error_code& ec)
569
+ finish (system:: error_code& ec)
570
570
{
571
571
p_.write_some (false , nullptr , 0 , ec);
572
572
}
@@ -599,7 +599,7 @@ class boost_null_impl : public any_impl
599
599
while (repeat--)
600
600
{
601
601
p.reset ();
602
- error_code ec;
602
+ system :: error_code ec;
603
603
p.write (s.data (), s.size (), ec);
604
604
BOOST_ASSERT (! ec);
605
605
}
@@ -618,7 +618,7 @@ class boost_null_impl : public any_impl
618
618
619
619
FILE* f = fopen (fi.name .data (), " rb" );
620
620
621
- error_code ec;
621
+ system :: error_code ec;
622
622
while ( true )
623
623
{
624
624
std::size_t const sz = fread (s, 1 , sizeof (s), f);
@@ -679,7 +679,7 @@ class boost_simple_impl : public any_impl
679
679
auto const start = clock_type::now ();
680
680
while (repeat--)
681
681
{
682
- error_code ec;
682
+ system :: error_code ec;
683
683
monotonic_resource mr;
684
684
auto jv = json::parse (s, ec, &mr, popts);
685
685
(void )jv;
@@ -693,7 +693,7 @@ class boost_simple_impl : public any_impl
693
693
auto const start = clock_type::now ();
694
694
while (repeat--)
695
695
{
696
- error_code ec;
696
+ system :: error_code ec;
697
697
std::ifstream is ( fi.name , std::ios::in | std::ios::binary );
698
698
monotonic_resource mr;
699
699
auto jv = json::parse (is, ec, &mr, popts);
@@ -1188,7 +1188,7 @@ main(
1188
1188
1189
1189
dout << " \n " << strout.str ();
1190
1190
}
1191
- catch (system_error const & se)
1191
+ catch (boost:: system :: system_error const & se)
1192
1192
{
1193
1193
dout << se.what () << std::endl;
1194
1194
}
0 commit comments