From 1230eb6d25aa483b91b5b14cd4b4810cd1ccfd6b Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 17 Oct 2023 09:32:53 +0200 Subject: [PATCH] test: inherited dimension test added --- test/unit_test/static/dimension_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/unit_test/static/dimension_test.cpp b/test/unit_test/static/dimension_test.cpp index 0ceed4f6..08eacb47 100644 --- a/test/unit_test/static/dimension_test.cpp +++ b/test/unit_test/static/dimension_test.cpp @@ -38,6 +38,8 @@ inline constexpr struct length_ : base_dimension<"L"> {} length; inline constexpr struct mass_ : base_dimension<"M"> {} mass; inline constexpr struct time_ : base_dimension<"T"> {} time; +inline constexpr struct my_length_ : decltype(length) {} my_length; + QUANTITY_SPEC_(q_time, time); inline constexpr struct second_ : named_unit<"s", kind_of> {} second; @@ -168,6 +170,7 @@ static_assert(invalid_operations