[timing] Loader compiles. Writer: not yet.
This commit is contained in:
@@ -31,6 +31,15 @@ namespace JsonUtil
|
||||
for(unsigned i=0; i<v.size(); i++)
|
||||
fn(*v[i], root[i]);
|
||||
}
|
||||
|
||||
template<class T>
|
||||
static void SerializeVectorPointers(const vector<const T*> &v, void fn(const T *, Json::Value &), Json::Value &root)
|
||||
{
|
||||
root = Json::Value(Json::arrayValue);
|
||||
root.resize(v.size());
|
||||
for(unsigned i=0; i<v.size(); i++)
|
||||
fn(*v[i], root[i]);
|
||||
}
|
||||
|
||||
template<typename V, typename T>
|
||||
static void SerializeArray(const V &v, void fn(const T &, Json::Value &), Json::Value &root)
|
||||
|
||||
Reference in New Issue
Block a user