There was an error while loading. Please reload this page.
1 parent 6bdd1a7 commit d6a16b6Copy full SHA for d6a16b6
1 file changed
benchmarks/json/person.cpp
@@ -157,7 +157,7 @@ rfl::Result<std::vector<Person>> yyjson_to_children(yyjson_val *_val) {
157
while ((val = yyjson_arr_iter_next(&iter))) {
158
auto r = yyjson_to_person(val);
159
if (!r) {
160
- return error(r.error());
+ return rfl::error(r.error());
161
}
162
children.emplace_back(std::move(*r));
163
@@ -220,7 +220,7 @@ rfl::Result<Person> yyjson_to_person(yyjson_val *_val) {
220
for (const auto &err : errors) {
221
std::cout << err.what() << std::endl;
222
223
- return error(errors[0]);
+ return rfl::error(errors[0]);
224
225
return person;
226
0 commit comments