Skip to content

Commit

Permalink
feat: implicit conversion for REX::TSetting
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix authored and ThirdEyeSqueegee committed Nov 22, 2024
1 parent fe80bc5 commit d907f28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/REX/REX/Setting.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d907f28

Please sign in to comment.