Skip to content

Commit

Permalink
Fix unused warning in fields_count.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
anarthal committed Oct 9, 2024
1 parent ff415a2 commit 22cd0f5
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 @@ -217,6 +217,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 22cd0f5

Please sign in to comment.