Skip to content

Commit

Permalink
Fix MSVC "redefinition; different storage class" build error
Browse files Browse the repository at this point in the history
'max_digits10' is defined with different specifiers, leads to compilation failures on MSVC 2019.
  • Loading branch information
NotCamelCase authored and MikeLankamp committed Mar 9, 2020
1 parent 98ac5f4 commit 8ac4bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fpm/fixed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ struct numeric_limits<fpm::fixed<B,I,F>>
static constexpr int digits10 = 1;

// This is equal to max_digits10 for the integer and fractional part together.
static const int max_digits10 =
static constexpr int max_digits10 =
fpm::detail::max_digits10(std::numeric_limits<B>::digits - F) + fpm::detail::max_digits10(F);

static constexpr int radix = 2;
Expand Down

0 comments on commit 8ac4bd9

Please sign in to comment.