summaryrefslogtreecommitdiffstats
path: root/settings_manager.mako.hpp
diff options
context:
space:
mode:
authorJames Feist <james.feist@linux.intel.com>2019-02-15 09:59:42 -0800
committerJames Feist <james.feist@linux.intel.com>2019-02-15 18:04:56 +0000
commit74e3be7d863cc504c7a6ddb54e30a97acdc9f38d (patch)
tree9f92797bd0aeaec65e8f75685520cf7174bdde87 /settings_manager.mako.hpp
parent5d3c69bc469c4e9e7d3514a336beb680cce0bd7f (diff)
downloadphosphor-settingsd-74e3be7d863cc504c7a6ddb54e30a97acdc9f38d.tar.gz
phosphor-settingsd-74e3be7d863cc504c7a6ddb54e30a97acdc9f38d.zip
Add array support for defauts
Based on: https://uscilab.github.io/cereal/stl_support.html To support vector we need to #include the cereal vector header. Closes #12 Tested-by: Was able to add an array default using C++ vector syntax Change-Id: I3b00c372b668ddcda69a56ede8edbc51ab2693f5 Signed-off-by: James Feist <james.feist@linux.intel.com>
Diffstat (limited to 'settings_manager.mako.hpp')
-rw-r--r--settings_manager.mako.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings_manager.mako.hpp b/settings_manager.mako.hpp
index 09a5a1f..c2255b8 100644
--- a/settings_manager.mako.hpp
+++ b/settings_manager.mako.hpp
@@ -34,6 +34,7 @@ def get_setting_type(path):
% endfor
% endfor
#include <cereal/archives/json.hpp>
+#include <cereal/types/vector.hpp>
#include <fstream>
#include <utility>
#include <experimental/filesystem>
OpenPOWER on IntegriCloud