From 8793aeec23f69bbc7594f13d848ec873c5c24455 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 19 Oct 2022 13:16:10 +0200 Subject: [PATCH] feat: convertibility check added for the target unit in the `system_reference` --- src/core/include/units/reference.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/include/units/reference.h b/src/core/include/units/reference.h index 992a4df7..eaa8c65b 100644 --- a/src/core/include/units/reference.h +++ b/src/core/include/units/reference.h @@ -155,8 +155,7 @@ struct system_reference { static constexpr auto coherent_unit = CoU; template - // TODO enable that - // requires(convertible(coherent_unit, U{})) + requires(convertible(coherent_unit, U{})) [[nodiscard]] constexpr reference, U> operator[](U) const { return {};