[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)
,StateOfJurisdiction_{mce_s_CT}
,StateOfDomicile_ {mce_s_CT}
,PremiumTaxState_ {mce_s_CT}
- ,InitialTargetPremium{C0}
+ ,InitialTargetPremium{0.0}
{
Init();
}
@@ -611,7 +611,7 @@ void BasicValues::Init7702()
/// These loads should instead reflect the lowest premium-tax rate.
,Loads_->target_premium_load_excluding_premium_tax()
,Loads_->excess_premium_load_excluding_premium_tax()
- ,InitialTargetPremium.d()
+ ,InitialTargetPremium
,round_min_premium()
,round_max_premium()
,round_min_specamt()
- [lmi-commits] [lmi] valyuta/004 2504286 04/17: Resolve some marked defects [333], (continued)
- [lmi-commits] [lmi] valyuta/004 2504286 04/17: Resolve some marked defects [333], Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 eeacb20 07/17: Prepare to move a block of code, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 f16fd3a 02/17: Expunge an unwanted exception class, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 5ceb54d 01/17: Move an enum, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 5ac107f 09/17: Refactor, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 c9b4787 13/17: Make two member functions almost identical, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 cf62b44 17/17: Record timings, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 9d9c2b7 06/17: Assert "length" is same in two classes, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 67f1c54 08/17: Move a block of code as just announced, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 80a18db 14/17: Make two member functions identical, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 89ea7c8 15/17: Change a member's datatype,
Greg Chicares <=
- [lmi-commits] [lmi] valyuta/004 c6f6f55 16/17: Expunge a duplicative member function [325], Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 17275df 05/17: Resolve some more marked defects [326], Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 72dcc19 11/17: Note an apparent defect [327], Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 4a21c32 10/17: Move another block of code, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 47b096d 12/17: Fix defect introduced 20100723T2339Z: wrong jurisdiction [326], Greg Chicares, 2020/12/24