summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Feist <james.feist@linux.intel.com>2019-11-11 22:23:14 +0300
committerJames Feist <james.feist@linux.intel.com>2019-11-11 22:23:14 +0300
commitf80c33718f07dcb9be8d05a92c1e902e32947e08 (patch)
tree3fca33b3d4d4828f5a072b6d2c72d72476f1c9d2
parent0dd0eec0a7064fa0314fcab5d86e54826fb84f88 (diff)
downloadprovingground-f80c33718f07dcb9be8d05a92c1e902e32947e08.tar.xz
Fix Settings Vector Problem
{} only initalizes the std::optional, not the thing in the optional. Intialize it correctly. Tested: Warnings went away, on reboot changes persisted Change-Id: I3c40317f077d241f0dc938910a28876f911d8021 Signed-off-by: James Feist <james.feist@linux.intel.com>
-rw-r--r--settings/include/interface.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/include/interface.hpp b/settings/include/interface.hpp
index 00f852a..d36d815 100644
--- a/settings/include/interface.hpp
+++ b/settings/include/interface.hpp
@@ -89,7 +89,7 @@ struct SettingsInterface
}
else if constexpr (is_vector_v<T>)
{
- resp = {};
+ resp = T();
for (const auto &val : data)
{
using SubType = typename T::value_type;