qicosmos / iguana

universal serialization engine
Apache License 2.0
1.08k stars 224 forks source link

name_of member #259

Closed qicosmos closed 4 months ago

qicosmos commented 4 months ago
  constexpr size_t idx1 = iguana::index_of<&point_t::y>();
  static_assert(idx1 == 1);
  constexpr size_t idx2 = iguana::index_of<&person::name>();
  static_assert(idx2 == 0);

  constexpr auto s1 = iguana::name_of<&point_t::y>();
  static_assert(s1 == "y");
  constexpr auto s2 = iguana::name_of<&person::name>();
  static_assert(s2 == "name");
codecov-commenter commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 45.03%. Comparing base (5857afd) to head (96f0964). Report is 14 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #259 +/- ## ========================================== + Coverage 44.75% 45.03% +0.28% ========================================== Files 46 46 Lines 5602 5627 +25 ========================================== + Hits 2507 2534 +27 + Misses 3095 3093 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.