From 32ea1bd9b46e433457b5f9496b7c7d16c45c928e Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 18 Oct 2023 21:03:21 +0200 Subject: [PATCH] feat: `common_type` with a raw value is not needed anymore as for a long time now raw values are not convertible to the dimensionless quantities --- src/core/include/mp-units/quantity.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/core/include/mp-units/quantity.h b/src/core/include/mp-units/quantity.h index 3537fddb..44c29bad 100644 --- a/src/core/include/mp-units/quantity.h +++ b/src/core/include/mp-units/quantity.h @@ -538,18 +538,4 @@ public: common_type_t>; }; -// dimensionless quantities support for interacting with raw values -template - requires(!mp_units::Quantity) && (Q::dimension == mp_units::dimension_one) && (Q::unit == mp_units::one) && - requires { typename common_type_t; } -struct common_type { -public: - using type = mp_units::quantity>; -}; - -template - requires(!mp_units::Quantity) && (Q::dimension == mp_units::dimension_one) && (Q::unit == mp_units::one) && - requires { typename common_type_t; } -struct common_type : common_type {}; - } // namespace std