Merge "libutil: implement PathsSetting<PathSet>" into main

This commit is contained in:
Justin ! 2024-10-28 14:22:59 +00:00 committed by Gerrit Code Review
commit 8c567c0424

View file

@ -471,9 +471,22 @@ template<> Paths PathsSetting<Paths>::parse(const std::string & str, const Apply
return parsed; return parsed;
} }
template<> PathSet PathsSetting<PathSet>::parse(const std::string &str, const ApplyConfigOptions & options) const
{
auto strings = tokenizeString<Strings>(str);
PathSet parsed;
for (auto str : strings) {
parsed.insert(parsePath(*this, str, options));
}
return parsed;
}
template class PathsSetting<Path>; template class PathsSetting<Path>;
template class PathsSetting<std::optional<Path>>; template class PathsSetting<std::optional<Path>>;
template class PathsSetting<Paths>; template class PathsSetting<Paths>;
template class PathsSetting<PathSet>;
bool GlobalConfig::set(const std::string & name, const std::string & value, const ApplyConfigOptions & options) bool GlobalConfig::set(const std::string & name, const std::string & value, const ApplyConfigOptions & options)