From 5975e4c1cc3ce6da21c47aa051e61a21c64bb5fd Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 19 Oct 2022 13:16:59 +0200 Subject: [PATCH] refactor: `named_unit` should inherit from `U` to for a correct inheritance hierarchy --- src/core/include/units/unit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/units/unit.h b/src/core/include/units/unit.h index 4dd877fb..68b465a5 100644 --- a/src/core/include/units/unit.h +++ b/src/core/include/units/unit.h @@ -75,7 +75,7 @@ struct named_unit { }; template -struct named_unit { +struct named_unit : std::remove_const_t { static constexpr auto symbol = Symbol; };