From 4c6ccf95af024a0141e1d6eec58d1fff5ccea0fe Mon Sep 17 00:00:00 2001 From: metabeyond Date: Thu, 14 Nov 2024 16:12:10 +0800 Subject: [PATCH] Fixed issues on MSVC Disabled macos.yaml --- .github/workflows/macos.yaml | 14 +++++++------- .../essence/meta/detail/fake_object_wrapper.hpp | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index ae7dc0a..c90386f 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -1,12 +1,12 @@ name: MacOS Build on: - push: - branches: - - main - pull_request: - branches: - - main +# push: +# branches: +# - main +# pull_request: +# branches: +# - main concurrency: group: ${{ github.workflow }}-${{ github.ref || github.run_id }} @@ -17,7 +17,7 @@ jobs: runs-on: macos-latest strategy: matrix: - compiler: [ 11, 12, 13 ] + compiler: [ 11, 12, 13, 14 ] preset: [ 'macos-release-user' ] steps: - name: Set up codebase diff --git a/include/essence/meta/detail/fake_object_wrapper.hpp b/include/essence/meta/detail/fake_object_wrapper.hpp index c38ad34..d5ebc9a 100644 --- a/include/essence/meta/detail/fake_object_wrapper.hpp +++ b/include/essence/meta/detail/fake_object_wrapper.hpp @@ -46,12 +46,12 @@ namespace essence::meta::detail { fake_object_wrapper(T) -> fake_object_wrapper; template - constexpr const T& make_fake_object_wrapper() noexcept { + consteval const T& make_fake_object_wrapper() noexcept { return fake_object_wrapper::shadow.value; } template - constexpr auto make_fake_object_wrapper(const T& obj) noexcept { + consteval auto make_fake_object_wrapper(const T& obj) noexcept { return fake_object_wrapper{obj}; }