From 928b16521ad05f8e9e584d4183924cd60c4ef4ad Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Sun, 13 Oct 2024 21:37:49 +0300 Subject: [PATCH] MSVC fix --- include/boost/pfr/detail/fields_count.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/pfr/detail/fields_count.hpp b/include/boost/pfr/detail/fields_count.hpp index 2e2451e5..c775f829 100644 --- a/include/boost/pfr/detail/fields_count.hpp +++ b/include/boost/pfr/detail/fields_count.hpp @@ -213,8 +213,8 @@ using one_element_range = std::true_type; template constexpr std::size_t fields_count_upper_bound_loose() noexcept { #if defined(_MSC_VER) && (_MSC_VER <= 1920) - if (sizeof(T) * CHAR_BIT > 1024) { - return 1024; + if (sizeof(T) * CHAR_BIT > 1000) { + return 1000; } #endif