Skip to content

Commit

Permalink
Merge pull request #312 from andrewcorrigan/merge/msvc-fixes
Browse files Browse the repository at this point in the history
MSVC fixes
  • Loading branch information
bluescarni authored May 12, 2024
2 parents 03e2cd8 + 56e6149 commit cf49ca2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/mp++/complex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3169,7 +3169,7 @@ inline namespace literals

#define MPPP_DECLARE_COMPLEX_UDL(prec) \
template <char... Chars> \
inline complex operator""_icr##prec() \
inline complex operator"" _icr##prec() \
{ \
return complex{real{real_kind::zero, prec}, detail::real_literal_impl<Chars...>(prec)}; \
}
Expand Down
2 changes: 2 additions & 0 deletions include/mp++/detail/fmt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ struct to_string_formatter {
fmt::throw_format_error("Invalid format");
#endif
// LCOV_EXCL_STOP

return it;
}

template <typename T, typename FormatContext>
Expand Down
2 changes: 1 addition & 1 deletion include/mp++/detail/integer_literals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ inline namespace literals

#define MPPP_DECLARE_INTEGRAL_UDL(n) \
template <char... Chars> \
inline integer<n> operator""_z##n() \
inline integer<n> operator"" _z##n() \
{ \
return detail::integer_literal_impl<n, Chars...>(); \
}
Expand Down
2 changes: 1 addition & 1 deletion include/mp++/detail/rational_literals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ inline namespace literals

#define MPPP_DECLARE_RATIONAL_UDL(n) \
template <char... Chars> \
inline rational<n> operator""_q##n() \
inline rational<n> operator"" _q##n() \
{ \
return rational<n>{detail::integer_literal_impl<n, Chars...>()}; \
}
Expand Down
2 changes: 1 addition & 1 deletion include/mp++/detail/real_literals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ inline namespace literals

#define MPPP_DECLARE_REAL_UDL(prec) \
template <char... Chars> \
inline real operator""_r##prec() \
inline real operator"" _r##prec() \
{ \
return detail::real_literal_impl<Chars...>(prec); \
}
Expand Down

0 comments on commit cf49ca2

Please sign in to comment.