config_passthrough.cpp

This commit is contained in:
Antonio SJ Musumeci 2024-04-08 17:52:40 -05:00
parent b48509e767
commit 016b980199

View file

@ -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<PassthroughEnum> e;
e = PassthroughEnum::_from_string_nothrow(s_.c_str());
if(!x)
return -EINVAL;