From 8a0a61b58996939601778e71e15159438b9b54ef Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 7 Feb 2023 22:28:14 -0800 Subject: [PATCH] refactor: `DerivedQuantitySpec` implementation simplified --- src/core/include/mp_units/bits/quantity_spec_concepts.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/core/include/mp_units/bits/quantity_spec_concepts.h b/src/core/include/mp_units/bits/quantity_spec_concepts.h index 503f89a4..eb158585 100644 --- a/src/core/include/mp_units/bits/quantity_spec_concepts.h +++ b/src/core/include/mp_units/bits/quantity_spec_concepts.h @@ -115,19 +115,13 @@ struct derived_quantity_spec; namespace detail { -template -inline constexpr bool is_derived_from_specialization_of_derived_quantity_spec = false; - -template -inline constexpr bool is_derived_from_specialization_of_derived_quantity_spec> = true; - /** * @brief Concept matching all derived quantity specification types * * Satisfied by all `derived_quantity_spec` specializations. */ template -concept DerivedQuantitySpec = detail::is_derived_from_specialization_of_derived_quantity_spec; +concept DerivedQuantitySpec = is_derived_from_specialization_of; } // namespace detail