refactor: named_unit<S, U> should inherit from U to for a correct inheritance hierarchy

This commit is contained in:
Mateusz Pusz
2022-10-19 13:16:59 +02:00
parent 8793aeec23
commit 5975e4c1cc

View File

@@ -75,7 +75,7 @@ struct named_unit<Symbol> {
};
template<basic_symbol_text Symbol, Unit auto U>
struct named_unit<Symbol, U> {
struct named_unit<Symbol, U> : std::remove_const_t<decltype(U)> {
static constexpr auto symbol = Symbol;
};