This commit is contained in:
2025-11-01 13:39:13 +03:00
parent ade281cdd2
commit d894b62773

View File

@@ -43,7 +43,7 @@ namespace omath::rev_eng
using VirtualMethodType = ReturnType (*)(void*, decltype(arg_list)...);
#endif
return (*reinterpret_cast<VirtualMethodType**>(const_cast<This*>(this)))[id](
this, std::forward<Args>(arg_list)...);
const_cast<void*>(static_cast<const void*>(this)), std::forward<Args>(arg_list)...);
}
};
} // namespace omath::rev_eng