Skip to content

Commit 90312ad

Browse files
authored
Merge pull request #33 from qudix/dev/misc
feat: implicit conversion for `REX::TSetting`
2 parents 7cf7ec7 + d20df6a commit 90312ad

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/main_ci_xmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
xmake-version: "latest"
3333

3434
- name: Configure
35-
run: xmake config -y --mode=${{ matrix.mode }} --vs_toolset=14.41
35+
run: xmake config -y --mode=${{ matrix.mode }} --vs_toolset=14
3636

3737
- name: Build
3838
run: xmake build -y -vD

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)