From a0ae08746f2e21a82415b70e7248605df5707ef2 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Sun, 6 Feb 2022 21:56:00 +0000 Subject: [PATCH] Restore mistakenly removed comment --- src/core/include/units/magnitude.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/include/units/magnitude.h b/src/core/include/units/magnitude.h index 55b295cf..b95e5558 100644 --- a/src/core/include/units/magnitude.h +++ b/src/core/include/units/magnitude.h @@ -458,6 +458,12 @@ template static constexpr auto prime_factorization_v = prime_factorization::value; } // namespace detail +/** + * @brief Convert any positive integer to a Magnitude. + * + * This will be the main way end users create Magnitudes. They should rarely (if ever) create a magnitude<...> by + * manually adding base powers. + */ template requires (R.num > 0) constexpr Magnitude auto as_magnitude() {