From ef7e7c4cfcf2617982193d126a6d4300dbc7b999 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 23 May 2022 20:47:29 +0200 Subject: [PATCH] refactor: `detail::same_scaled_units` renamed to `detail::compatible_units` --- src/core/include/units/bits/derived_scaled_unit.h | 6 +++--- src/core/include/units/unit.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/include/units/bits/derived_scaled_unit.h b/src/core/include/units/bits/derived_scaled_unit.h index e94c7636..5844100e 100644 --- a/src/core/include/units/bits/derived_scaled_unit.h +++ b/src/core/include/units/bits/derived_scaled_unit.h @@ -26,12 +26,12 @@ namespace units::detail { -// same_scaled_units +// compatible_units template -inline constexpr bool same_scaled_units = false; +inline constexpr bool compatible_units = false; template -inline constexpr bool same_scaled_units, Us...> = (UnitOf && ...); +inline constexpr bool compatible_units, Us...> = (UnitOf && ...); // derived_scaled_unit diff --git a/src/core/include/units/unit.h b/src/core/include/units/unit.h index eddb7ea2..ad79bae3 100644 --- a/src/core/include/units/unit.h +++ b/src/core/include/units/unit.h @@ -145,7 +145,7 @@ struct derived_unit : downcast_dispatch> {}; * @tparam URest the units for the rest of dimensions from the recipe */ template - requires detail::same_scaled_units + requires detail::compatible_units struct derived_scaled_unit : downcast_dispatch> { static constexpr auto symbol = detail::derived_symbol_text(); };