diff options
author | Your Name <you@example.com> | 2021-04-29 14:17:08 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-04-29 14:17:08 -0400 |
commit | 5a813a75412ac9b8fadb90c9abd46dd95aee8e9b (patch) | |
tree | 75c5466d459c793430a6481cd276a624cd843794 /src/jsonable.h | |
parent | cd57ad6e208728bafcbc8c7d7b85d88603706978 (diff) | |
download | dmtool-5a813a75412ac9b8fadb90c9abd46dd95aee8e9b.tar.gz dmtool-5a813a75412ac9b8fadb90c9abd46dd95aee8e9b.tar.bz2 dmtool-5a813a75412ac9b8fadb90c9abd46dd95aee8e9b.zip |
Removed data files from repo
Diffstat (limited to 'src/jsonable.h')
-rw-r--r-- | src/jsonable.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jsonable.h b/src/jsonable.h index d6866b8..2c0da6b 100644 --- a/src/jsonable.h +++ b/src/jsonable.h @@ -19,7 +19,8 @@ template<typename T> std::vector<T> json2vec(const nlohmann::json& data) { template<typename T> std::vector<T> jsonList2vec(const std::string& type, const std::vector<std::string>& names) { std::vector<T> ret; for(auto name : names) { - ret.push_back(utils::loadJson(type, name)); + auto j = utils::loadJson(type, name); + ret.push_back(T(j, j)); } return ret; } |