diff --git a/include/boost/pfr/detail/fields_count.hpp b/include/boost/pfr/detail/fields_count.hpp index 9ca38741..c3397b3b 100644 --- a/include/boost/pfr/detail/fields_count.hpp +++ b/include/boost/pfr/detail/fields_count.hpp @@ -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(n); #endif return SIZE_MAX; }