@@ -298,7 +298,7 @@ class boost_default_impl : public any_impl
298298 while (repeat--)
299299 {
300300 p.reset ();
301- error_code ec;
301+ system:: error_code ec;
302302 p.write (s.data (), s.size (), ec);
303303 if (! ec)
304304 p.finish (ec);
@@ -320,7 +320,7 @@ class boost_default_impl : public any_impl
320320
321321 FILE* f = fopen (fi.name .data (), " rb" );
322322
323- error_code ec;
323+ system:: error_code ec;
324324 while ( true )
325325 {
326326 std::size_t const sz = fread (s, 1 , sizeof (s), f);
@@ -412,7 +412,7 @@ class boost_pool_impl : public any_impl
412412 {
413413 monotonic_resource mr;
414414 p.reset (&mr);
415- error_code ec;
415+ system:: error_code ec;
416416 p.write (s.data (), s.size (), ec);
417417 if (! ec)
418418 p.finish (ec);
@@ -435,7 +435,7 @@ class boost_pool_impl : public any_impl
435435
436436 FILE* f = fopen (fi.name .data (), " rb" );
437437
438- error_code ec;
438+ system:: error_code ec;
439439 while ( true )
440440 {
441441 std::size_t const sz = fread (s, 1 , sizeof (s), f);
@@ -509,24 +509,24 @@ class boost_null_impl : public any_impl
509509 constexpr static std::size_t max_key_size = std::size_t (-1 );
510510 constexpr static std::size_t max_string_size = std::size_t (-1 );
511511
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 ; }
530530 };
531531
532532 basic_parser<handler> p_;
@@ -546,7 +546,7 @@ class boost_null_impl : public any_impl
546546 write (
547547 char const * data,
548548 std::size_t size,
549- error_code& ec)
549+ system:: error_code& ec)
550550 {
551551 auto const n = p_.write_some (
552552 false , data, size, ec);
@@ -559,14 +559,14 @@ class boost_null_impl : public any_impl
559559 write_some (
560560 char const * data,
561561 std::size_t size,
562- error_code& ec)
562+ system:: error_code& ec)
563563 {
564564 return p_.write_some (
565565 true , data, size, ec);
566566 }
567567
568568 void
569- finish (error_code& ec)
569+ finish (system:: error_code& ec)
570570 {
571571 p_.write_some (false , nullptr , 0 , ec);
572572 }
@@ -599,7 +599,7 @@ class boost_null_impl : public any_impl
599599 while (repeat--)
600600 {
601601 p.reset ();
602- error_code ec;
602+ system:: error_code ec;
603603 p.write (s.data (), s.size (), ec);
604604 BOOST_ASSERT (! ec);
605605 }
@@ -618,7 +618,7 @@ class boost_null_impl : public any_impl
618618
619619 FILE* f = fopen (fi.name .data (), " rb" );
620620
621- error_code ec;
621+ system:: error_code ec;
622622 while ( true )
623623 {
624624 std::size_t const sz = fread (s, 1 , sizeof (s), f);
@@ -679,7 +679,7 @@ class boost_simple_impl : public any_impl
679679 auto const start = clock_type::now ();
680680 while (repeat--)
681681 {
682- error_code ec;
682+ system:: error_code ec;
683683 monotonic_resource mr;
684684 auto jv = json::parse (s, ec, &mr, popts);
685685 (void )jv;
@@ -693,7 +693,7 @@ class boost_simple_impl : public any_impl
693693 auto const start = clock_type::now ();
694694 while (repeat--)
695695 {
696- error_code ec;
696+ system:: error_code ec;
697697 std::ifstream is ( fi.name , std::ios::in | std::ios::binary );
698698 monotonic_resource mr;
699699 auto jv = json::parse (is, ec, &mr, popts);
@@ -1188,7 +1188,7 @@ main(
11881188
11891189 dout << " \n " << strout.str ();
11901190 }
1191- catch (system_error const & se)
1191+ catch (boost::system:: system_error const & se)
11921192 {
11931193 dout << se.what () << std::endl;
11941194 }
0 commit comments