forked from mpusz/mp-units
refactor: named_unit<S, U>
should inherit from U
to for a correct inheritance hierarchy
This commit is contained in:
@@ -75,7 +75,7 @@ struct named_unit<Symbol> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
template<basic_symbol_text Symbol, Unit auto U>
|
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;
|
static constexpr auto symbol = Symbol;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user