Added regex support to dependencies and dependants filter
This commit is contained in:
@@ -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_))
|
||||
|
||||
Reference in New Issue
Block a user