diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index e51340f9..005242e2 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -1,4 +1,4 @@ -name: macOS Monterey 12 +name: macOS Monterey latest on: push: @@ -13,7 +13,7 @@ jobs: mode: [ Debug, Release ] cpp_version: [17, 20] - runs-on: macos-12 + runs-on: macos-latest steps: - name: check out diff --git a/README.md b/README.md index 5711aecd..99c481b3 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ |------------------------------------------------|----------------------------------------------------------------------------------------------------------| | Ubuntu 22.04 (clang 14.0.0) | ![win](https://github.com/qicosmos/iguana/actions/workflows/linux-clang.yml/badge.svg?branch=master) | | Ubuntu 22.04 (gcc 11.2.0) | ![win](https://github.com/qicosmos/iguana/actions/workflows/linux-gcc.yml/badge.svg?branch=master) | -| macOS Monterey 12 (AppleClang 14.0.0.14000029) | ![win](https://github.com/qicosmos/iguana/actions/workflows/mac.yml/badge.svg?branch=master) | +| macOS Monterey latest (AppleClang latest) | ![win](https://github.com/qicosmos/iguana/actions/workflows/mac.yml/badge.svg?branch=master) | | Windows Server 2022 (MSVC 19.33.31630.0) | ![win](https://github.com/qicosmos/iguana/actions/workflows/windows.yml/badge.svg?branch=master) | qq 交流群 701594518 diff --git a/test/test_reflection.cpp b/test/test_reflection.cpp index a5ea54a7..2cd64fe6 100644 --- a/test/test_reflection.cpp +++ b/test/test_reflection.cpp @@ -368,12 +368,12 @@ YLT_REFL(simple2, color, id, str, age); TEST_CASE("test macros") { static_assert(!std::is_aggregate_v); simple2 t{2, 10, "hello reflection", 6}; -#ifdef __GNUC__ + constexpr auto idx = index_of<&simple2::age>(); static_assert(idx == 3); constexpr auto idx2 = index_of<&simple2::id>(); static_assert(idx2 == 1); -#endif + constexpr auto arr = get_member_names(); static_assert(arr.size() == 4); constexpr auto map = member_names_map;