diff --git a/docs/framework/units.rst b/docs/framework/units.rst index c3ad6b96..af40ebd1 100644 --- a/docs/framework/units.rst +++ b/docs/framework/units.rst @@ -203,27 +203,27 @@ complete list of all the :term:`SI` prefixes supported by the library:: namespace si { - struct yocto : prefix(mag<10>())> {}; - struct zepto : prefix(mag<10>())> {}; - struct atto : prefix(mag<10>())> {}; - struct femto : prefix(mag<10>())> {}; - struct pico : prefix(mag<10>())> {}; - struct nano : prefix(mag<10>())> {}; + struct yocto : prefix()> {}; + struct zepto : prefix()> {}; + struct atto : prefix()> {}; + struct femto : prefix()> {}; + struct pico : prefix()> {}; + struct nano : prefix()> {}; struct micro : prefix(mag<10>())> {}; - struct milli : prefix(mag<10>())> {}; - struct centi : prefix(mag<10>())> {}; - struct deci : prefix(mag<10>())> {}; - struct deca : prefix(mag<10>())> {}; - struct hecto : prefix(mag<10>())> {}; - struct kilo : prefix(mag<10>())> {}; - struct mega : prefix(mag<10>())> {}; - struct giga : prefix(mag<10>())> {}; - struct tera : prefix(mag<10>())> {}; - struct peta : prefix(mag<10>())> {}; - struct exa : prefix(mag<10>())> {}; - struct zetta : prefix(mag<10>())> {}; - struct yotta : prefix(mag<10>())> {}; + mag_power<10, -6>()> {}; + struct milli : prefix()> {}; + struct centi : prefix()> {}; + struct deci : prefix()> {}; + struct deca : prefix()> {}; + struct hecto : prefix()> {}; + struct kilo : prefix()> {}; + struct mega : prefix()> {}; + struct giga : prefix()> {}; + struct tera : prefix()> {}; + struct peta : prefix()> {}; + struct exa : prefix()> {}; + struct zetta : prefix()> {}; + struct yotta : prefix()> {}; } @@ -232,14 +232,14 @@ domain:: namespace iec80000 { - struct kibi : prefix(mag<2>())> {}; - struct mebi : prefix(mag<2>())> {}; - struct gibi : prefix(mag<2>())> {}; - struct tebi : prefix(mag<2>())> {}; - struct pebi : prefix(mag<2>())> {}; - struct exbi : prefix(mag<2>())> {}; - struct zebi : prefix(mag<2>())> {}; - struct yobi : prefix(mag<2>())> {}; + struct kibi : prefix()> {}; + struct mebi : prefix()> {}; + struct gibi : prefix()> {}; + struct tebi : prefix()> {}; + struct pebi : prefix()> {}; + struct exbi : prefix()> {}; + struct zebi : prefix()> {}; + struct yobi : prefix()> {}; } diff --git a/src/systems/isq-iec80000/include/units/isq/iec80000/binary_prefixes.h b/src/systems/isq-iec80000/include/units/isq/iec80000/binary_prefixes.h index a9fe73dd..95133401 100644 --- a/src/systems/isq-iec80000/include/units/isq/iec80000/binary_prefixes.h +++ b/src/systems/isq-iec80000/include/units/isq/iec80000/binary_prefixes.h @@ -26,13 +26,13 @@ namespace units::isq::iec80000 { -struct kibi : prefix(mag<2>())> {}; -struct mebi : prefix(mag<2>())> {}; -struct gibi : prefix(mag<2>())> {}; -struct tebi : prefix(mag<2>())> {}; -struct pebi : prefix(mag<2>())> {}; -struct exbi : prefix(mag<2>())> {}; -struct zebi : prefix(mag<2>())> {}; -struct yobi : prefix(mag<2>())> {}; +struct kibi : prefix()> {}; +struct mebi : prefix()> {}; +struct gibi : prefix()> {}; +struct tebi : prefix()> {}; +struct pebi : prefix()> {}; +struct exbi : prefix()> {}; +struct zebi : prefix()> {}; +struct yobi : prefix()> {}; } // namespace units::isq::iec80000 diff --git a/src/systems/si/include/units/isq/si/prefixes.h b/src/systems/si/include/units/isq/si/prefixes.h index 562370b6..66142605 100644 --- a/src/systems/si/include/units/isq/si/prefixes.h +++ b/src/systems/si/include/units/isq/si/prefixes.h @@ -27,26 +27,26 @@ namespace units::isq::si { // clang-format off -struct yocto : prefix(mag<10>())> {}; -struct zepto : prefix(mag<10>())> {}; -struct atto : prefix(mag<10>())> {}; -struct femto : prefix(mag<10>())> {}; -struct pico : prefix(mag<10>())> {}; -struct nano : prefix(mag<10>())> {}; -struct micro : prefix(mag<10>())> {}; -struct milli : prefix(mag<10>())> {}; -struct centi : prefix(mag<10>())> {}; -struct deci : prefix(mag<10>())> {}; -struct deca : prefix(mag<10>())> {}; -struct hecto : prefix(mag<10>())> {}; -struct kilo : prefix(mag<10>())> {}; -struct mega : prefix(mag<10>())> {}; -struct giga : prefix(mag<10>())> {}; -struct tera : prefix(mag<10>())> {}; -struct peta : prefix(mag<10>())> {}; -struct exa : prefix(mag<10>())> {}; -struct zetta : prefix(mag<10>())> {}; -struct yotta : prefix(mag<10>())> {}; +struct yocto : prefix()> {}; +struct zepto : prefix()> {}; +struct atto : prefix()> {}; +struct femto : prefix()> {}; +struct pico : prefix()> {}; +struct nano : prefix()> {}; +struct micro : prefix()> {}; +struct milli : prefix()> {}; +struct centi : prefix()> {}; +struct deci : prefix()> {}; +struct deca : prefix()> {}; +struct hecto : prefix()> {}; +struct kilo : prefix()> {}; +struct mega : prefix()> {}; +struct giga : prefix()> {}; +struct tera : prefix()> {}; +struct peta : prefix()> {}; +struct exa : prefix()> {}; +struct zetta : prefix()> {}; +struct yotta : prefix()> {}; // clang-format on } // namespace units::isq::si