diff --git a/src/systems/si-cgs/include/units/si/cgs/cgs.h b/src/systems/si-cgs/include/units/si/cgs/cgs.h index 1d25940e..17d9016e 100644 --- a/src/systems/si-cgs/include/units/si/cgs/cgs.h +++ b/src/systems/si-cgs/include/units/si/cgs/cgs.h @@ -29,8 +29,8 @@ namespace units::si::cgs { // clang-format off inline constexpr struct centimetre : si::centi_ {} centimetre; -inline constexpr struct gram : si::gram {} gram; -inline constexpr struct second : si::second {} second; +inline constexpr struct gram : decltype(si::gram) {} gram; +inline constexpr struct second : decltype(si::second) {} second; inline constexpr struct gal : named_unit<"Gal", centimetre / square> {} gal; inline constexpr struct dyne : named_unit<"dyn", gram * centimetre / square> {} dyne; inline constexpr struct erg : named_unit<"erg", dyne / centimetre> {} erg; @@ -40,4 +40,17 @@ inline constexpr struct stokes : named_unit<"St", square / second> { inline constexpr struct kayser : decltype(1 / centimetre) {} kayser; // clang-format on +namespace unit_symbols { + +inline constexpr auto cm = centimetre; +inline constexpr auto g = gram; +inline constexpr auto s = second; +inline constexpr auto Gal = gal; +inline constexpr auto dyn = dyne; +inline constexpr auto Ba = barye; +inline constexpr auto P = poise; +inline constexpr auto St = stokes; + +} // namespace unit_symbols + } // namespace units::si::cgs