Skip to content

Commit

Permalink
Fix unused warning in fields_count.hpp (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
anarthal authored Oct 15, 2024
1 parent 469ac13 commit 69263f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/boost/pfr/detail/fields_count.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ constexpr std::size_t fields_count_compiler_limitation_next(std::size_t n) noexc
#if defined(_MSC_VER) && (_MSC_VER <= 1920)
if (n < 1024)
return 1024;
#else
static_cast<void>(n);
#endif
return SIZE_MAX;
}
Expand Down

0 comments on commit 69263f4

Please sign in to comment.