Merge branch 'develop' into feature/iterator_range_parsing
This commit is contained in:
commit
6f3554f040
5 changed files with 24 additions and 7 deletions
|
|
@ -9009,7 +9009,8 @@ basic_json_parser_63:
|
|||
{
|
||||
case lexer::token_type::begin_object:
|
||||
{
|
||||
if (keep and (not callback or (keep = callback(depth++, parse_event_t::object_start, result))))
|
||||
if (keep and (not callback
|
||||
or ((keep = callback(depth++, parse_event_t::object_start, result)) != 0)))
|
||||
{
|
||||
// explicitly set result to object to cope with {}
|
||||
result.m_type = value_t::object;
|
||||
|
|
@ -9087,7 +9088,8 @@ basic_json_parser_63:
|
|||
|
||||
case lexer::token_type::begin_array:
|
||||
{
|
||||
if (keep and (not callback or (keep = callback(depth++, parse_event_t::array_start, result))))
|
||||
if (keep and (not callback
|
||||
or ((keep = callback(depth++, parse_event_t::array_start, result)) != 0)))
|
||||
{
|
||||
// explicitly set result to object to cope with []
|
||||
result.m_type = value_t::array;
|
||||
|
|
|
|||
|
|
@ -8306,7 +8306,8 @@ class basic_json
|
|||
{
|
||||
case lexer::token_type::begin_object:
|
||||
{
|
||||
if (keep and (not callback or (keep = callback(depth++, parse_event_t::object_start, result))))
|
||||
if (keep and (not callback
|
||||
or ((keep = callback(depth++, parse_event_t::object_start, result)) != 0)))
|
||||
{
|
||||
// explicitly set result to object to cope with {}
|
||||
result.m_type = value_t::object;
|
||||
|
|
@ -8384,7 +8385,8 @@ class basic_json
|
|||
|
||||
case lexer::token_type::begin_array:
|
||||
{
|
||||
if (keep and (not callback or (keep = callback(depth++, parse_event_t::array_start, result))))
|
||||
if (keep and (not callback
|
||||
or ((keep = callback(depth++, parse_event_t::array_start, result)) != 0)))
|
||||
{
|
||||
// explicitly set result to object to cope with []
|
||||
result.m_type = value_t::array;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue