From 3169f14d6db4f7d087b94d7711bf5ae9202fe87c Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Thu, 21 Nov 2024 18:44:17 -0600 Subject: [PATCH] feat: implicit conversion for `REX::TSetting` --- CommonLibF4/include/REX/REX/Setting.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CommonLibF4/include/REX/REX/Setting.h b/CommonLibF4/include/REX/REX/Setting.h index 5d26eb57..fcf63f1f 100644 --- a/CommonLibF4/include/REX/REX/Setting.h +++ b/CommonLibF4/include/REX/REX/Setting.h @@ -41,6 +41,10 @@ namespace REX void SetValue(T a_value) { m_value = a_value; } + public: + operator T&() { return m_value; } + operator const T&() const { return m_value; } + protected: T m_value; T m_valueDefault;