From c5fa2399afec72f24f7d9420789c7e213d64cb06 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 19 Dec 2022 12:51:46 +0100 Subject: [PATCH] fix: in case of no factor a `radius` should not be a kind of `diameter` to prevent accidental implicit conversions --- src/systems/isq/include/units/isq/space_and_time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systems/isq/include/units/isq/space_and_time.h b/src/systems/isq/include/units/isq/space_and_time.h index 40133efc..aafcdc64 100644 --- a/src/systems/isq/include/units/isq/space_and_time.h +++ b/src/systems/isq/include/units/isq/space_and_time.h @@ -35,7 +35,7 @@ inline constexpr auto altitude = height; QUANTITY_SPEC(thickness, width); QUANTITY_SPEC(diameter, width); // QUANTITY_SPEC(radius, mag * diameter); // TODO should we support that? -QUANTITY_SPEC(radius, diameter); +QUANTITY_SPEC(radius, width); QUANTITY_SPEC(path_length, length); inline constexpr auto arc_length = path_length; QUANTITY_SPEC(distance, path_length);