From 3169f14d6db4f7d087b94d7711bf5ae9202fe87c Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Thu, 21 Nov 2024 18:44:17 -0600 Subject: [PATCH 1/2] feat: implicit conversion for `REX::TSetting` --- CommonLibF4/include/REX/REX/Setting.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CommonLibF4/include/REX/REX/Setting.h b/CommonLibF4/include/REX/REX/Setting.h index 5d26eb57..fcf63f1f 100644 --- a/CommonLibF4/include/REX/REX/Setting.h +++ b/CommonLibF4/include/REX/REX/Setting.h @@ -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; From d20df6a490a57871feedeb40281504c508514b57 Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Thu, 21 Nov 2024 21:32:15 -0600 Subject: [PATCH 2/2] ci: fix --- .github/workflows/main_ci_xmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main_ci_xmake.yml b/.github/workflows/main_ci_xmake.yml index c7095ae7..bb1e294b 100644 --- a/.github/workflows/main_ci_xmake.yml +++ b/.github/workflows/main_ci_xmake.yml @@ -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