Fix noexceptions builds

This commit is contained in:
John Keiser 2020-08-21 14:22:59 -07:00
parent 98be2c91df
commit 311ea79238
2 changed files with 8 additions and 2 deletions

View File

@ -56,7 +56,10 @@ simdjson_really_inline bool array::finished() const noexcept {
}
simdjson_really_inline array array::start(document *doc) noexcept {
return array(doc, doc->iter.start_array());
error_code error;
json_iterator::container c;
if ((error = doc->iter.start_array().get(c))) { return error_chain(doc, error); }
return array(doc, c);
}
simdjson_really_inline array array::started(document *doc) noexcept {
return array(doc, doc->iter.started_array());

View File

@ -104,7 +104,10 @@ simdjson_really_inline simdjson_result<value> object::operator[](const std::stri
}
simdjson_really_inline object object::start(document *doc) noexcept {
return object(doc, doc->iter.start_object());
error_code error;
json_iterator::container c;
if ((error = doc->iter.start_object().get(c))) { return error_chain(doc, error); }
return object(doc, c);
}
simdjson_really_inline object object::started(document *doc) noexcept {
return object(doc, doc->iter.started_object());