Support silencing logging in analyzer

This commit is contained in:
momo5502
2025-02-08 18:05:47 +01:00
parent 9f4a80b42e
commit edcc090181
2 changed files with 21 additions and 0 deletions

View File

@@ -33,6 +33,13 @@ namespace utils
return *this;
}
template <typename T>
requires(!std::is_same_v<std::remove_cvref_t<T>, std::function<Ret(Args...)>>)
optional_function& operator=(T&& t)
{
return this->operator=(std::function<Ret(Args...)>(std::forward<T>(t)));
}
Ret operator()(Args... args) const
{
if (func)