[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master d8a1cb9b 1/5: Write 'constexpr' where suitabl
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master d8a1cb9b 1/5: Write 'constexpr' where suitable |
Date: |
Sat, 14 May 2022 16:07:54 -0400 (EDT) |
branch: master
commit d8a1cb9b59dd20666c9faba76a53e6c273518df7
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Write 'constexpr' where suitable
---
ul_utilities_test.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ul_utilities_test.cpp b/ul_utilities_test.cpp
index 71a80a57..56df8273 100644
--- a/ul_utilities_test.cpp
+++ b/ul_utilities_test.cpp
@@ -105,8 +105,8 @@ void test_max_modal_premium()
// because so many real-world examples are along the lines of
// 0.01 * $100,000 .
- double const rate {0.0123456700000001};
- currency const specamt {9'876'543'21_cents};
+ constexpr double rate {0.0123456700000001};
+ constexpr currency specamt {9'876'543'21_cents};
LMI_TEST(materially_equal(12193254.3211401, rate * specamt.cents()));