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 committed Nov 21, 2024
1 parent fe80bc5 commit 134bab3
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 134bab3

Please sign in to comment.