Skip to content

Commit 25e2fcd

Browse files
committed
Fix domnoexcept to actually be noexcept
1 parent bf0d90c commit 25e2fcd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

benchmark/partial_tweets/domnoexcept.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ class DomNoExcept {
1717
dom::parser parser{};
1818
std::vector<tweet> tweets{};
1919

20-
simdjson_really_inline simdjson_result<uint64_t> nullable_int(dom::element element) noexcept {
20+
simdjson_really_inline simdjson_result<uint64_t> nullable_int(simdjson_result<dom::element> result) noexcept {
21+
dom::element element;
22+
SIMDJSON_TRY( result.get(element) );
2123
if (element.is_null()) { return 0; }
2224
return element.get_uint64();
2325
}

0 commit comments

Comments
 (0)