From 947f87a25390bdb2b4b22952c1ad55a56fe280e4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 7 May 2023 22:37:06 -0700 Subject: Mark some global constexpr variables inline --- common/alnumbers.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'common/alnumbers.h') diff --git a/common/alnumbers.h b/common/alnumbers.h index 800b1f2a..e92d7b87 100644 --- a/common/alnumbers.h +++ b/common/alnumbers.h @@ -13,21 +13,21 @@ namespace detail_ { } // detail_ template -constexpr auto pi_v = detail_::as_fp(3.141592653589793238462643383279502884L); +inline constexpr auto pi_v = detail_::as_fp(3.141592653589793238462643383279502884L); template -constexpr auto inv_pi_v = detail_::as_fp(0.318309886183790671537767526745028724L); +inline constexpr auto inv_pi_v = detail_::as_fp(0.318309886183790671537767526745028724L); template -constexpr auto sqrt2_v = detail_::as_fp(1.414213562373095048801688724209698079L); +inline constexpr auto sqrt2_v = detail_::as_fp(1.414213562373095048801688724209698079L); template -constexpr auto sqrt3_v = detail_::as_fp(1.732050807568877293527446341505872367L); +inline constexpr auto sqrt3_v = detail_::as_fp(1.732050807568877293527446341505872367L); -constexpr auto pi = pi_v; -constexpr auto inv_pi = inv_pi_v; -constexpr auto sqrt2 = sqrt2_v; -constexpr auto sqrt3 = sqrt3_v; +inline constexpr auto pi = pi_v; +inline constexpr auto inv_pi = inv_pi_v; +inline constexpr auto sqrt2 = sqrt2_v; +inline constexpr auto sqrt3 = sqrt3_v; } // namespace numbers -- cgit v1.2.3