From 651c890442e29aac5b2c8febf6180bf6ca02ee6b Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Sat, 23 Aug 2025 17:15:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E6=94=BEOrigin=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- detail/Core/Object.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/detail/Core/Object.hpp b/detail/Core/Object.hpp index ba9b312..6fef385 100644 --- a/detail/Core/Object.hpp +++ b/detail/Core/Object.hpp @@ -21,10 +21,15 @@ template <> struct Object }; template struct Object : private Object { + constexpr DerivedTerminal* Origin() noexcept + { + return static_cast(this); + } + using TDerivedTerminal = DerivedTerminal; constexpr DerivedTerminal* operator->() noexcept { - return static_cast(this); + return Origin(); } template