From 016b98019907844916368cc054a1e8b369c2ea52 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 8 Apr 2024 17:52:40 -0500 Subject: [PATCH] config_passthrough.cpp --- src/config_passthrough.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config_passthrough.cpp b/src/config_passthrough.cpp index 17cc1e29..d7a03f52 100644 --- a/src/config_passthrough.cpp +++ b/src/config_passthrough.cpp @@ -31,7 +31,9 @@ template<> int Passthrough::from_string(const std::string &s_) { - auto x = PassthroughEnum::_from_string_nothrow(s_.c_str()); + better_enums::optional e; + + e = PassthroughEnum::_from_string_nothrow(s_.c_str()); if(!x) return -EINVAL;