[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] valyuta/004 89ea7c8 15/17: Change a member's datatyp

From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/004 89ea7c8 15/17: Change a member's datatype
Date: Thu, 24 Dec 2020 10:23:53 -0500 (EST)

branch: valyuta/004
commit 89ea7c882177cbd0ebed3992649c59bfc9245f51
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Change a member's datatype
    BasicValues::InitialTargetPremium is used only for the special purpose
    of passing a gpt-server argument of type double. Even though it is
    notionally a currency amount, it's provided and used only as a double,
    so converting its type to currency and back again is pointless.
    And there's no longer any reason for it to be 'mutable'.
 basic_values.hpp | 2 +-
 ihs_basicval.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/basic_values.hpp b/basic_values.hpp
index 95bfd9f..8d16bb9 100644
--- a/basic_values.hpp
+++ b/basic_values.hpp
@@ -440,7 +440,7 @@ class LMI_SO BasicValues
     std::vector<double> partial_mortality_tpx_;
     std::vector<double> partial_mortality_lx_;
-    mutable currency    InitialTargetPremium;
+    double              InitialTargetPremium;
     void                Init7702();
     void                Init7702A();
diff --git a/ihs_basicval.cpp b/ihs_basicval.cpp
index 857a638..972aedc 100644
--- a/ihs_basicval.cpp
+++ b/ihs_basicval.cpp
@@ -80,7 +80,7 @@ BasicValues::BasicValues(Input const& input)
     ,StateOfDomicile_    {mce_s_CT}
     ,PremiumTaxState_    {mce_s_CT}
-    ,InitialTargetPremium{C0}
+    ,InitialTargetPremium{0.0}
@@ -611,7 +611,7 @@ void BasicValues::Init7702()
 /// These loads should instead reflect the lowest premium-tax rate.
-            ,InitialTargetPremium.d()
+            ,InitialTargetPremium

reply via email to

[Prev in Thread] Current Thread [Next in Thread]