finished test

This commit is contained in:
2025-10-04 10:04:34 +03:00
parent dc6edbb67f
commit cbee8c2c95
2 changed files with 52 additions and 2 deletions

View File

@@ -24,10 +24,10 @@ namespace omath::rev_eng
}
template<std::size_t id, class ReturnType>
ReturnType call_virtual_method(auto&&... arg_list)
ReturnType call_virtual_method(auto... arg_list)
{
using VirtualMethodType = ReturnType(__thiscall*)(void*, decltype(arg_list)...);
return (*static_cast<VirtualMethodType**>(this))[id](this, arg_list...);
return (*reinterpret_cast<VirtualMethodType**>(this))[id](this, arg_list...);
}
};
} // namespace omath::rev_eng