@@ -190,7 +190,8 @@ namespace jsoncons {
190190 {
191191 v.push_back (decode_traits<value_type,CharT>::decode (cursor, decoder, ec));
192192 if (ec) {return T{};}
193- cursor.next (ec);
193+ std::cout << " read next 10\n " ;
194+ // cursor.next(ec);
194195 }
195196 return v;
196197 }
@@ -479,6 +480,7 @@ namespace jsoncons {
479480 {
480481 v.insert (decode_traits<value_type,CharT>::decode (cursor, decoder, ec));
481482 if (ec) {return T{};}
483+ std::cout << " cursor.next 20\n " ;
482484 cursor.next (ec);
483485 if (ec) {return T{};}
484486 }
@@ -525,6 +527,7 @@ namespace jsoncons {
525527 {
526528 v[i] = decode_traits<value_type,CharT>::decode (cursor, decoder, ec);
527529 if (ec) {return v;}
530+ std::cout << " cursor.next 100\n " ;
528531 cursor.next (ec);
529532 if (ec) {return v;}
530533 }
@@ -571,10 +574,12 @@ namespace jsoncons {
571574 }
572575 auto key = cursor.current ().template get <key_type>(ec);
573576 if (ec) {return val;}
577+ std::cout << " cursor.next 200\n " ;
574578 cursor.next (ec);
575579 if (ec) {return val;}
576580 val.emplace (std::move (key),decode_traits<mapped_type,CharT>::decode (cursor, decoder, ec));
577581 if (ec) {return val;}
582+ std::cout << " cursor.next 300\n " ;
578583 cursor.next (ec);
579584 if (ec) {return val;}
580585 }
@@ -635,10 +640,12 @@ namespace jsoncons {
635640 ec = json_errc::invalid_number;
636641 return val;
637642 }
643+ std::cout << " cursor.next 500\n " ;
638644 cursor.next (ec);
639645 if (ec) {return val;}
640646 val.emplace (n, decode_traits<mapped_type,CharT>::decode (cursor, decoder, ec));
641647 if (ec) {return val;}
648+ std::cout << " cursor.next 600\n " ;
642649 cursor.next (ec);
643650 if (ec) {return val;}
644651 }
0 commit comments