diff --git a/src/include/units/unit.h b/src/include/units/unit.h index f2f85c91..30561d61 100644 --- a/src/include/units/unit.h +++ b/src/include/units/unit.h @@ -42,7 +42,7 @@ namespace std::experimental::units { template inline constexpr bool is_unit = false; - template + template inline constexpr bool is_unit> = true; } @@ -57,36 +57,36 @@ namespace std::experimental::units { namespace detail { - template + template struct get_unit_base_dim; - template + template struct get_unit_base_dim> { static_assert(sizeof...(Rest) == 0, "Base unit expected"); using dimension = E::dimension; }; - template + template struct get_ratio { using ratio = ::std::experimental::units::ratio<1>; }; - template + template struct get_ratio { using unit_base_dim = get_unit_base_dim::dimension; using ratio = conditional::ratio>; }; - template + template struct ratio_op; - template + template struct ratio_op { using ratio = Result; }; - template + template struct ratio_op { using calc_ratio = conditional<(UnitExpValue > 0), ratio_multiply, ratio_divide>; @@ -94,15 +94,15 @@ namespace std::experimental::units { using ratio = ratio_op::ratio; }; - template + template struct derived_ratio; - template + template struct derived_ratio, Us...> { using ratio = ::std::experimental::units::ratio<1>; }; - template + template struct derived_ratio, Us...> { using rest_ratio = derived_ratio, Us...>::ratio; using e_ratio = get_ratio::ratio;