diff --git a/include/omath/rev_eng/internal_rev_object.hpp b/include/omath/rev_eng/internal_rev_object.hpp index 601301a..34dffde 100644 --- a/include/omath/rev_eng/internal_rev_object.hpp +++ b/include/omath/rev_eng/internal_rev_object.hpp @@ -90,6 +90,19 @@ namespace omath::rev_eng return call_method(address, arg_list...); } + template + 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(address, arg_list...); + } + + template + 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(address, arg_list...); + } template ReturnType call_virtual_method(auto... arg_list) {