Skip to content

Commit

Permalink
MSVC fix
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Oct 13, 2024
1 parent 1722abb commit 928b165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/pfr/detail/fields_count.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ using one_element_range = std::true_type;
template <class T>
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

Expand Down

0 comments on commit 928b165

Please sign in to comment.