Skip to content

Commit 3169f14

Browse files
committed
feat: implicit conversion for REX::TSetting
1 parent 071b7a4 commit 3169f14

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CommonLibF4/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)