Fix bug in cli manager

This commit is contained in:
sha512sum 2024-07-08 02:43:21 +00:00
parent 87bfb71f2b
commit 42a20bcc41

View file

@ -74,6 +74,7 @@ struct Manager {
constexpr std::string_view nname = nnname.substr(0, nnname.find(','));
utempl::ConstexprString<nname.size() + 1> name;
std::ranges::copy_n(nname.begin(), nname.size(), name.begin());
name.data[nname.size()] = '\0';
if(this->variableMap.count(name.begin())) {
return this->variableMap[name.begin()].template as<typename decltype(fieldConfig)::Type>();
};