Upgrade to yyjson 0.10.0 (#282)

This commit is contained in:
Dr. Patrick Urbanke (劉自成)
2024-11-27 21:47:50 +01:00
committed by GitHub
parent 5f9d0c13d1
commit cb06a085b8
4 changed files with 9755 additions and 9562 deletions
+8 -4
View File
@@ -1,6 +1,7 @@
#ifndef RFL_PARSING_TUPLEREADER_HPP_
#define RFL_PARSING_TUPLEREADER_HPP_
#include <sstream>
#include <string_view>
#include <tuple>
#include <type_traits>
@@ -76,15 +77,18 @@ class TupleReader {
move_to(&(rfl::get<_i>(*tuple_)), &(*res));
++num_set_;
} else {
*_err = Error("Failed to parse field " + std::to_string(_i) + ": " +
res.error()->what());
std::stringstream stream;
stream << "Failed to parse field " << _i << ": "
<< res.error()->what();
*_err = Error(stream.str());
}
return;
}
read_impl<_i + 1>(_var, _err);
} else {
*_err = Error("Expected " + std::to_string(size_) +
" fields, but got at least one more.");
std::stringstream stream;
stream << "Expected " << size_ << " fields, but got at least one more.";
*_err = Error(stream.str());
return;
}
}
+2811 -2776
View File
File diff suppressed because it is too large Load Diff
+6934 -6775
View File
File diff suppressed because it is too large Load Diff
+2 -7
View File
@@ -52,7 +52,8 @@
"version>=": "0.8.0#1"
},
{
"name": "yyjson"
"name": "yyjson",
"version>=": "0.9.0"
},
{
"name": "benchmark",
@@ -70,11 +71,5 @@
"name": "vcpkg-cmake-config",
"version>=": "2022-02-06#1"
}
],
"overrides": [
{
"name": "yyjson",
"version": "0.8.0"
}
]
}