2
0
mirror of https://github.com/boostorg/pfr.git synced 2026-01-19 04:22:13 +00:00

Fix unused warning in fields_count.hpp (#187)

This commit is contained in:
Anarthal (Rubén Pérez)
2024-10-15 08:41:21 +02:00
committed by GitHub
parent 469ac134f3
commit 69263f4757

View File

@@ -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;
}