diff --git a/src/systems/si/include/units/si/prefixes.h b/src/systems/si/include/units/si/prefixes.h index eba32a3c..955a74ca 100644 --- a/src/systems/si/include/units/si/prefixes.h +++ b/src/systems/si/include/units/si/prefixes.h @@ -26,86 +26,48 @@ namespace units::si { -template -struct yocto_ : prefixed_unit<"y", mag_power<10, -24>, U> {}; -template -struct zepto_ : prefixed_unit<"z", mag_power<10, -21>, U> {}; -template -struct atto_ : prefixed_unit<"a", mag_power<10, -18>, U> {}; -template -struct femto_ : prefixed_unit<"f", mag_power<10, -15>, U> {}; -template -struct pico_ : prefixed_unit<"p", mag_power<10, -12>, U> {}; -template -struct nano_ : prefixed_unit<"n", mag_power<10, -9>, U> {}; -template -struct micro_ : prefixed_unit, U> {}; -template -struct milli_ : prefixed_unit<"m", mag_power<10, -3>, U> {}; -template -struct centi_ : prefixed_unit<"c", mag_power<10, -2>, U> {}; -template -struct deci_ : prefixed_unit<"d", mag_power<10, -1>, U> {}; -template -struct deca_ : prefixed_unit<"da", mag_power<10, 1>, U> {}; -template -struct hecto_ : prefixed_unit<"h", mag_power<10, 2>, U> {}; -template -struct kilo_ : prefixed_unit<"k", mag_power<10, 3>, U> {}; -template -struct mega_ : prefixed_unit<"M", mag_power<10, 6>, U> {}; -template -struct giga_ : prefixed_unit<"G", mag_power<10, 9>, U> {}; -template -struct tera_ : prefixed_unit<"T", mag_power<10, 12>, U> {}; -template -struct peta_ : prefixed_unit<"P", mag_power<10, 15>, U> {}; -template -struct exa_ : prefixed_unit<"E", mag_power<10, 18>, U> {}; -template -struct zetta_ : prefixed_unit<"Z", mag_power<10, 21>, U> {}; -template -struct yotta_ : prefixed_unit<"Y", mag_power<10, 24>, U> {}; +// clang-format off +template struct yocto_ : prefixed_unit<"y", mag_power<10, -24>, U> {}; +template struct zepto_ : prefixed_unit<"z", mag_power<10, -21>, U> {}; +template struct atto_ : prefixed_unit<"a", mag_power<10, -18>, U> {}; +template struct femto_ : prefixed_unit<"f", mag_power<10, -15>, U> {}; +template struct pico_ : prefixed_unit<"p", mag_power<10, -12>, U> {}; +template struct nano_ : prefixed_unit<"n", mag_power<10, -9>, U> {}; +template struct micro_ : prefixed_unit, U> {}; +template struct milli_ : prefixed_unit<"m", mag_power<10, -3>, U> {}; +template struct centi_ : prefixed_unit<"c", mag_power<10, -2>, U> {}; +template struct deci_ : prefixed_unit<"d", mag_power<10, -1>, U> {}; +template struct deca_ : prefixed_unit<"da", mag_power<10, 1>, U> {}; +template struct hecto_ : prefixed_unit<"h", mag_power<10, 2>, U> {}; +template struct kilo_ : prefixed_unit<"k", mag_power<10, 3>, U> {}; +template struct mega_ : prefixed_unit<"M", mag_power<10, 6>, U> {}; +template struct giga_ : prefixed_unit<"G", mag_power<10, 9>, U> {}; +template struct tera_ : prefixed_unit<"T", mag_power<10, 12>, U> {}; +template struct peta_ : prefixed_unit<"P", mag_power<10, 15>, U> {}; +template struct exa_ : prefixed_unit<"E", mag_power<10, 18>, U> {}; +template struct zetta_ : prefixed_unit<"Z", mag_power<10, 21>, U> {}; +template struct yotta_ : prefixed_unit<"Y", mag_power<10, 24>, U> {}; -template -inline constexpr yocto_ yocto; -template -inline constexpr zepto_ zepto; -template -inline constexpr atto_ atto; -template -inline constexpr femto_ femto; -template -inline constexpr pico_ pico; -template -inline constexpr nano_ nano; -template -inline constexpr micro_ micro; -template -inline constexpr milli_ milli; -template -inline constexpr centi_ centi; -template -inline constexpr deci_ deci; -template -inline constexpr deca_ deca; -template -inline constexpr hecto_ hecto; -template -inline constexpr kilo_ kilo; -template -inline constexpr mega_ mega; -template -inline constexpr giga_ giga; -template -inline constexpr tera_ tera; -template -inline constexpr peta_ peta; -template -inline constexpr exa_ exa; -template -inline constexpr zetta_ zetta; -template -inline constexpr yotta_ yotta; +template inline constexpr yocto_ yocto; +template inline constexpr zepto_ zepto; +template inline constexpr atto_ atto; +template inline constexpr femto_ femto; +template inline constexpr pico_ pico; +template inline constexpr nano_ nano; +template inline constexpr micro_ micro; +template inline constexpr milli_ milli; +template inline constexpr centi_ centi; +template inline constexpr deci_ deci; +template inline constexpr deca_ deca; +template inline constexpr hecto_ hecto; +template inline constexpr kilo_ kilo; +template inline constexpr mega_ mega; +template inline constexpr giga_ giga; +template inline constexpr tera_ tera; +template inline constexpr peta_ peta; +template inline constexpr exa_ exa; +template inline constexpr zetta_ zetta; +template inline constexpr yotta_ yotta; +// clang-format on } // namespace units::si