Skip to content

Commit

Permalink
Merge pull request #340 from qicosmos/fix_index_of
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos authored Dec 9, 2024
2 parents 4ea64b7 + c91ce3c commit e69a7e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: macOS Monterey 12
name: macOS Monterey latest

on:
push:
Expand All @@ -13,7 +13,7 @@ jobs:
mode: [ Debug, Release ]
cpp_version: [17, 20]

runs-on: macos-12
runs-on: macos-latest

steps:
- name: check out
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/test_reflection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,12 @@ YLT_REFL(simple2, color, id, str, age);
TEST_CASE("test macros") {
static_assert(!std::is_aggregate_v<simple2>);
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<simple2>();
static_assert(arr.size() == 4);
constexpr auto map = member_names_map<simple2>;
Expand Down

0 comments on commit e69a7e7

Please sign in to comment.