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;