Added regex support to dependencies and dependants filter

This commit is contained in:
Bartek Kryza
2023-06-09 00:44:01 +02:00
parent 658bceee4b
commit 7e416ffa97
7 changed files with 281 additions and 61 deletions

View File

@@ -207,6 +207,14 @@ template <typename T> struct or_regex {
return std::get<T>(value_) == v;
}
template <typename Ret> std::optional<Ret> get() const
{
if (!std::holds_alternative<Ret>(value_))
return std::nullopt;
return std::get<Ret>(value_);
}
std::string to_string() const
{
if (std::holds_alternative<regex>(value_))