mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 12:24:26 +02:00
fix: unconditional typename
This commit is contained in:
committed by
Mateusz Pusz
parent
2600ababb6
commit
675d77f3ba
@@ -168,9 +168,9 @@ template<Dimension D>
|
||||
auto default_unit()
|
||||
{
|
||||
if constexpr (BaseDimension<D>)
|
||||
return TYPENAME D::base_unit{};
|
||||
return typename D::base_unit{};
|
||||
else
|
||||
return TYPENAME D::coherent_unit{};
|
||||
return typename D::coherent_unit{};
|
||||
}
|
||||
|
||||
} // namespace detail
|
||||
|
Reference in New Issue
Block a user