Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Commit d907f28

Browse files
qudixThirdEyeSqueegee
authored andcommitted
feat: implicit conversion for REX::TSetting
1 parent fe80bc5 commit d907f28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/REX/REX/Setting.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ namespace REX
4141

4242
void SetValue(T a_value) { m_value = a_value; }
4343

44+
public:
45+
operator T&() { return m_value; }
46+
operator const T&() const { return m_value; }
47+
4448
protected:
4549
T m_value;
4650
T m_valueDefault;

0 commit comments

Comments
 (0)