Fix noexceptions builds
This commit is contained in:
parent
98be2c91df
commit
311ea79238
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue