From 06dc36089f21d9fdf4e49429bcb49b2335147e94 Mon Sep 17 00:00:00 2001 From: Orange Date: Wed, 18 Mar 2026 21:19:09 +0300 Subject: [PATCH] added overload --- include/omath/rev_eng/internal_rev_object.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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) {