Skip to content

Commit

Permalink
Merge pull request #3775 from pleroy/Clang
Browse files Browse the repository at this point in the history
Klong: Make the constexpr variables inline.
  • Loading branch information
pleroy authored Sep 26, 2023
2 parents 5532144 + 89a91f2 commit 1dde9dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions numerics/angle_reduction_body.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ namespace internal {
using namespace principia::quantities::_si;

template<>
constexpr Angle one_π<Angle> = π * Radian;
inline constexpr Angle one_π<Angle> = π * Radian;

template<>
constexpr DoublePrecision<Angle> one_π<DoublePrecision<Angle>> = []() {
inline constexpr DoublePrecision<Angle> one_π<DoublePrecision<Angle>> = []() {
DoublePrecision<Angle> result;
result.value = 0x1.921FB54442D18p1 * Radian;
result.error = 0x1.1A62633145C07p-53 * Radian;
return result;
}();

template<>
constexpr Angle two_π<Angle> = 2 * π * Radian;
inline constexpr Angle two_π<Angle> = 2 * π * Radian;

template<>
constexpr DoublePrecision<Angle> two_π<DoublePrecision<Angle>> = []() {
inline constexpr DoublePrecision<Angle> two_π<DoublePrecision<Angle>> = []() {
DoublePrecision<Angle> result;
result.value = 0x1.921FB54442D18p2 * Radian;
result.error = 0x1.1A62633145C07p-52 * Radian;
Expand Down

0 comments on commit 1dde9dc

Please sign in to comment.