fix: unconditional typename

This commit is contained in:
Johel Ernesto Guerrero Peña
2020-09-07 23:05:18 -04:00
committed by Mateusz Pusz
parent 2600ababb6
commit 675d77f3ba

View File

@@ -168,9 +168,9 @@ template<Dimension D>
auto default_unit() auto default_unit()
{ {
if constexpr (BaseDimension<D>) if constexpr (BaseDimension<D>)
return TYPENAME D::base_unit{}; return typename D::base_unit{};
else else
return TYPENAME D::coherent_unit{}; return typename D::coherent_unit{};
} }
} // namespace detail } // namespace detail