From 7edbf9758604eb5de56dff0fa118dee84b1bb077 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 23 Jun 2025 21:45:05 +0100 Subject: [PATCH] refactor: unneeded parenthesis removed from `ValuePreservingScaling` --- src/core/include/mp-units/framework/quantity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/mp-units/framework/quantity.h b/src/core/include/mp-units/framework/quantity.h index b750ee72..7e53a48e 100644 --- a/src/core/include/mp-units/framework/quantity.h +++ b/src/core/include/mp-units/framework/quantity.h @@ -79,7 +79,7 @@ concept ValuePreservingAssignment = std::assignable_from && is_value_pr template concept ValuePreservingScaling = SaneScaling && - (treat_as_floating_point || (integral_conversion_factor(FromUnit, ToUnit)) || + (treat_as_floating_point || integral_conversion_factor(FromUnit, ToUnit) || unsatisfied<"Scaling from '{}' to '{}' is not value-preserving for '{}' representation type">( unit_symbol(FromUnit), unit_symbol(ToUnit), type_name()));