Skip to content

Commit

Permalink
Correct is_compatible_arithmetic_type
Browse files Browse the repository at this point in the history
Allow other numbers to pass through.
  • Loading branch information
jzmaddock committed Mar 6, 2024
1 parent 8f0dd78 commit 5ea2087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/multiprecision/detail/number_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ template <class T, class Num>
struct is_compatible_arithmetic_type
: public std::integral_constant<bool,
std::is_convertible<T, Num>::value && !std::is_same<T, Num>::value && !is_number_expression<T>::value
&& (std::is_constructible<typename Num::backend_type, T>::value || std::is_assignable<typename Num::backend_type, T>::value)>
&& (std::is_constructible<typename Num::backend_type, T>::value || std::is_assignable<typename Num::backend_type, T>::value || is_number<T>::value || is_number_expression<T>::value)>
{};

namespace detail {
Expand Down

0 comments on commit 5ea2087

Please sign in to comment.