diff --git a/src/core/include/units/bits/expression_template.h b/src/core/include/units/bits/expression_template.h index 0d145010..07c0e632 100644 --- a/src/core/include/units/bits/expression_template.h +++ b/src/core/include/units/bits/expression_template.h @@ -173,24 +173,24 @@ struct expr_consolidate_impl> { template requires(!is_specialization_of_power) struct expr_consolidate_impl> { - using type = expr_consolidate_impl, Rest...>>::type; + using type = TYPENAME expr_consolidate_impl, Rest...>>::type; }; // replaces the instance of a type and a power of it with one with incremented power template struct expr_consolidate_impl, Rest...>> { - using type = expr_consolidate_impl::exponent + 1>, Rest...>>::type; + using type = TYPENAME expr_consolidate_impl::exponent + 1>, Rest...>>::type; }; // accumulates the powers of instances of the same type (removes the element in case the accumulation result is `0`) template struct expr_consolidate_impl, power, Rest...>> { static constexpr ratio r = power::exponent + power::exponent; - using type = typename expr_consolidate_impl, Rest...>>::type; + using type = TYPENAME expr_consolidate_impl, Rest...>>::type; }; template -using expr_consolidate = typename expr_consolidate_impl::type; +using expr_consolidate = TYPENAME expr_consolidate_impl::type; /**