diff --git a/src/core/include/mp-units/framework/quantity.h b/src/core/include/mp-units/framework/quantity.h index 4b64a707..3ad8f563 100644 --- a/src/core/include/mp-units/framework/quantity.h +++ b/src/core/include/mp-units/framework/quantity.h @@ -61,15 +61,13 @@ template return is_integral(get_canonical_unit(from).mag / get_canonical_unit(to).mag); } -template -concept IsFloatingPoint = treat_as_floating_point; - template -concept ValuePreservingTo = Unit && - Unit && std::assignable_from && - (IsFloatingPoint || (!IsFloatingPoint> && - integral_conversion_factor(FromUnit, ToUnit) && - !overflows_non_zero_values(FromUnit, ToUnit))); +concept ValuePreservingTo = + Unit && Unit && + std::assignable_from && + (treat_as_floating_point || + (!treat_as_floating_point> && integral_conversion_factor(FromUnit, ToUnit) && + !overflows_non_zero_values(FromUnit, ToUnit))); template concept RepresentationValuePreservingTo =