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 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;