diff --git a/main/au.hh b/main/au.hh index 37932320..b3b4356e 100644 --- a/main/au.hh +++ b/main/au.hh @@ -24,7 +24,7 @@ #include #include -// Version identifier: 0.3.5-8-g52b93f4 +// Version identifier: 0.3.5-9-gf267ebc // support: INCLUDED // List of included units: // amperes diff --git a/main/au_all_units.hh b/main/au_all_units.hh index d3264adc..a3a56749 100644 --- a/main/au_all_units.hh +++ b/main/au_all_units.hh @@ -24,7 +24,7 @@ #include #include -// Version identifier: 0.3.5-8-g52b93f4 +// Version identifier: 0.3.5-9-gf267ebc // support: INCLUDED // List of included units: // amperes @@ -4334,6 +4334,24 @@ struct common_type, au::Quantity> } // namespace std +namespace au { + +// DO NOT follow this pattern to define your own units. This is for library-defined units. +// Instead, follow instructions at (https://aurora-opensource.github.io/au/main/howto/new-units/). +template +struct UnosLabel { + static constexpr const char label[] = "U"; +}; +template +constexpr const char UnosLabel::label[]; +struct Unos : UnitProductT<>, UnosLabel { + using UnosLabel::label; +}; +constexpr auto unos = QuantityMaker{}; + +} // namespace au + + // "Mixin" classes to add operations for a "unit wrapper" --- that is, a template with a _single // template parameter_ that is a unit. // @@ -4538,24 +4556,6 @@ struct CanScaleByMagnitude { } // namespace au -namespace au { - -// DO NOT follow this pattern to define your own units. This is for library-defined units. -// Instead, follow instructions at (https://aurora-opensource.github.io/au/main/howto/new-units/). -template -struct UnosLabel { - static constexpr const char label[] = "U"; -}; -template -constexpr const char UnosLabel::label[]; -struct Unos : UnitProductT<>, UnosLabel { - using UnosLabel::label; -}; -constexpr auto unos = QuantityMaker{}; - -} // namespace au - - namespace au { // `QuantityPoint`: an _affine space type_ modeling points on a line. @@ -5029,6 +5029,28 @@ struct AssociatedUnit> : stdx::type_identity {}; } // namespace au +namespace au { + +// DO NOT follow this pattern to define your own units. This is for library-defined units. +// Instead, follow instructions at (https://aurora-opensource.github.io/au/main/howto/new-units/). +template +struct SecondsLabel { + static constexpr const char label[] = "s"; +}; +template +constexpr const char SecondsLabel::label[]; +struct Seconds : UnitImpl