From 1d689b01e47d24809b30da0d2ad00443baef1e2e Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 6 Jun 2024 13:20:46 +0200 Subject: [PATCH] refactor: :boom: `Unit` concept now requires `T` to be marked `final` --- src/core/include/mp-units/framework/unit_concepts.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/core/include/mp-units/framework/unit_concepts.h b/src/core/include/mp-units/framework/unit_concepts.h index 75a143e6..94e430d0 100644 --- a/src/core/include/mp-units/framework/unit_concepts.h +++ b/src/core/include/mp-units/framework/unit_concepts.h @@ -137,14 +137,7 @@ void is_unit_impl(const derived_unit*); void is_unit_impl(const one*); template -inline constexpr bool is_specialization_of_prefixed_unit = false; - -template -inline constexpr bool is_specialization_of_prefixed_unit> = true; - -template - requires requires(T* t) { is_unit_impl(t); } && (!is_specialization_of_named_unit) && - (!is_specialization_of_prefixed_unit) + requires requires(T* t) { is_unit_impl(t); } && std::is_final_v inline constexpr bool is_unit = true; template