added overload

This commit is contained in:
2026-03-18 21:19:09 +03:00
parent 91136a61c4
commit 06dc36089f

View File

@@ -90,6 +90,19 @@ namespace omath::rev_eng
return call_method<ReturnType>(address, arg_list...); return call_method<ReturnType>(address, arg_list...);
} }
template<class ReturnType>
ReturnType call_method(const std::string_view& module_name,const std::string_view& pattern, auto... arg_list)
{
static const auto* address = resolve_pattern(module_name, pattern);
return call_method<ReturnType>(address, arg_list...);
}
template<class ReturnType>
ReturnType call_method(const std::string_view& module_name,const std::string_view& pattern, auto... arg_list) const
{
static const auto* address = resolve_pattern(module_name, pattern);
return call_method<ReturnType>(address, arg_list...);
}
template<std::size_t Id, class ReturnType> template<std::size_t Id, class ReturnType>
ReturnType call_virtual_method(auto... arg_list) ReturnType call_virtual_method(auto... arg_list)
{ {