Commit b3b70a4f authored by Alexander Lapshin's avatar Alexander Lapshin

.

parent bebbec17
...@@ -625,6 +625,14 @@ inline void PutValue(jsonalloc& alc, jsonval& ss, const std::string& conName, co ...@@ -625,6 +625,14 @@ inline void PutValue(jsonalloc& alc, jsonval& ss, const std::string& conName, co
ss.AddMember(jname, jsvec, alc); ss.AddMember(jname, jsvec, alc);
} }
template <typename T>
inline void PutValue(jsonalloc& alc, jsonval& ss, const std::vector<T>& vec)
{
for (const auto& el : vec) {
PutValue(alc, ss, el);
}
}
inline void PutValue(jsonalloc& alc, jsonval& ss, const std::string& conName, const std::vector<size_t>& vec) inline void PutValue(jsonalloc& alc, jsonval& ss, const std::string& conName, const std::vector<size_t>& vec)
{ {
jsonval jsvec(rapidjson::kArrayType); jsonval jsvec(rapidjson::kArrayType);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment