Skip to content

Commit

Permalink
Merge pull request #33 from qudix/dev/misc
Browse files Browse the repository at this point in the history
feat: implicit conversion for `REX::TSetting`
  • Loading branch information
shad0wshayd3 authored Dec 10, 2024
2 parents 7cf7ec7 + d20df6a commit 90312ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main_ci_xmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
xmake-version: "latest"

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

- name: Build
run: xmake build -y -vD
4 changes: 4 additions & 0 deletions CommonLibF4/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 90312ad

Please sign in to comment.