From d894b627737c80869f4736ae55987f30804ce8da Mon Sep 17 00:00:00 2001 From: Orange Date: Sat, 1 Nov 2025 13:39:13 +0300 Subject: [PATCH] patch --- include/omath/rev_eng/internal_rev_object.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/omath/rev_eng/internal_rev_object.hpp b/include/omath/rev_eng/internal_rev_object.hpp index 0f05d41..71fda4a 100644 --- a/include/omath/rev_eng/internal_rev_object.hpp +++ b/include/omath/rev_eng/internal_rev_object.hpp @@ -33,7 +33,7 @@ namespace omath::rev_eng #endif return (*reinterpret_cast(this))[id](this, std::forward(arg_list)...); } - template + template ReturnType call_virtual_method(Args&&... arg_list) const { using This = std::remove_cv_t>; @@ -43,7 +43,7 @@ namespace omath::rev_eng using VirtualMethodType = ReturnType (*)(void*, decltype(arg_list)...); #endif return (*reinterpret_cast(const_cast(this)))[id]( - this, std::forward(arg_list)...); + const_cast(static_cast(this)), std::forward(arg_list)...); } }; } // namespace omath::rev_eng