From f80c33718f07dcb9be8d05a92c1e902e32947e08 Mon Sep 17 00:00:00 2001 From: James Feist Date: Mon, 11 Nov 2019 11:23:14 -0800 Subject: 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 --- settings/include/interface.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { - resp = {}; + resp = T(); for (const auto &val : data) { using SubType = typename T::value_type; -- cgit v1.2.3