Fix C++11 error

This commit is contained in:
John Keiser 2020-08-19 15:56:08 -07:00
parent 6be2db8c42
commit a58d2f710d
1 changed files with 3 additions and 2 deletions

View File

@ -60,8 +60,9 @@ simdjson_really_inline simdjson_result<raw_json_string> value::get_raw_json_stri
return result;
}
simdjson_really_inline simdjson_result<std::string_view> value::get_string() noexcept {
auto [str, error] = get_raw_json_string();
if (error) { return error; }
error_code error;
raw_json_string str;
if ((error = get_raw_json_string().get(str))) { return error; }
return str.unescape(doc->parser->current_string_buf_loc);
}
simdjson_really_inline simdjson_result<double> value::get_double() noexcept {