From cef01ba67cef1e64ad98a5d2cb5c0fbd9868aeb7 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Fri, 31 Dec 2021 09:54:10 -0500 Subject: [PATCH] Remove redundant `inline` specifiers `static constexpr` implies `inline`; see: https://stackoverflow.com/a/57407675 --- src/core/include/units/magnitude.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/include/units/magnitude.h b/src/core/include/units/magnitude.h index 943cab2e..25931150 100644 --- a/src/core/include/units/magnitude.h +++ b/src/core/include/units/magnitude.h @@ -42,7 +42,7 @@ namespace units::mag template struct base_power { using base = Base; - static inline constexpr ratio power = Power; + static constexpr ratio power = Power; }; /** @@ -147,7 +147,7 @@ constexpr auto make_base_power() { * @brief A base to represent pi. */ struct pi { - static inline constexpr long double value = std::numbers::pi_v; + static constexpr long double value = std::numbers::pi_v; }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -261,7 +261,7 @@ struct product, Tail1...>, magnitude, Tail2...>> { using tail_product = product_t, magnitude>; - static inline constexpr auto Pow = Pow1 + Pow2; + static constexpr auto Pow = Pow1 + Pow2; using type = std::conditional_t< Pow.num == 0, tail_product, @@ -318,9 +318,9 @@ template struct prime_factorization { static_assert(N > 1, "Can only factor positive integers."); - static inline constexpr std::intmax_t first_base = find_first_factor(N); - static inline constexpr std::intmax_t first_power = multiplicity(first_base, N); - static inline constexpr std::intmax_t remainder = remove_power(first_base, first_power, N); + static constexpr std::intmax_t first_base = find_first_factor(N); + static constexpr std::intmax_t first_power = multiplicity(first_base, N); + static constexpr std::intmax_t remainder = remove_power(first_base, first_power, N); using type = product_t< magnitude, ratio{first_power}>>, prime_factorization_t>;