version 4.8.0
fix PICodeParser: complex static array dimensions, member template types for multideclaration PIJSON::serialize and PIJSON::deserialize helpers
This commit is contained in:
@@ -392,4 +392,22 @@ inline void piDeserializeJSON(PIMap<K, T> & v, const PIJSON & js) {
|
||||
}
|
||||
|
||||
|
||||
// ---
|
||||
// PIJSON static wrapper
|
||||
// ---
|
||||
|
||||
|
||||
template<typename T>
|
||||
PIJSON PIJSON::serialize(const T & v) {
|
||||
return piSerializeJSON(v);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T PIJSON::deserialize(const PIJSON & json) {
|
||||
T ret;
|
||||
piDeserializeJSON(ret, json);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
#endif // pijsonserialization_h
|
||||
|
||||
Reference in New Issue
Block a user