Fix domnoexcept to actually be noexcept

This commit is contained in:
John Keiser 2020-09-09 15:43:43 -07:00
parent 76aeda6b00
commit b4df0e7c9e
1 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,9 @@ private:
dom::parser parser{};
std::vector<tweet> tweets{};
simdjson_really_inline simdjson_result<uint64_t> nullable_int(dom::element element) noexcept {
simdjson_really_inline simdjson_result<uint64_t> nullable_int(simdjson_result<dom::element> result) noexcept {
dom::element element;
SIMDJSON_TRY( result.get(element) );
if (element.is_null()) { return 0; }
return element.get_uint64();
}