From 134bab38866ceab6eb9a6c785708b9712cf35c28 Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Thu, 21 Nov 2024 12:22:04 -0600 Subject: [PATCH] feat: implicit conversion for `REX::TSetting` --- include/REX/REX/Setting.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/REX/REX/Setting.h b/include/REX/REX/Setting.h index 5d26eb57..fcf63f1f 100644 --- a/include/REX/REX/Setting.h +++ b/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;