lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 45cf6f4 13/13: Move initialization of some le


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 45cf6f4 13/13: Move initialization of some ledger members
Date: Tue, 14 Apr 2020 12:07:03 -0400 (EDT)

branch: master
commit 45cf6f403f4f1540854ab27a1b53a1710adb08c3
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Move initialization of some ledger members
    
    Incidentally noted why one, defectively it would seem, cannot be moved.
---
 ihs_acctval.cpp           | 5 ++---
 ledger_invariant_init.cpp | 8 +++++---
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index d9dc6c9..1b7a615 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -460,9 +460,8 @@ void AccountValue::InitializeLife(mcenum_run_basis a_Basis)
     // for all other bases. TODO ?? TAXATION !! How should we handle MEC-avoid
     // solves on bases other than current?
 
-    InvariantValues().InforceYear  = yare_input_.InforceYear;
-    InvariantValues().InforceMonth = yare_input_.InforceMonth;
-
+    // INPUT !! This should depend only on 'yare_input_.InforceIsMec',
+    // which probably should be forced to 'false' for new business.
     bool inforce_is_mec =
            yare_input_.EffectiveDate != yare_input_.InforceAsOfDate
         && yare_input_.InforceIsMec
diff --git a/ledger_invariant_init.cpp b/ledger_invariant_init.cpp
index 060a23f..979cec1 100644
--- a/ledger_invariant_init.cpp
+++ b/ledger_invariant_init.cpp
@@ -217,9 +217,11 @@ void LedgerInvariant::Init(BasicValues const* b)
     CustomFund                 = b->yare_input_.OverrideFundManagementFee;
 
 //  IsMec                      = DYNAMIC
-//  InforceIsMec               = DYNAMIC ? Static: could be set here.
-//  InforceYear                = DYNAMIC ? Static: could be set here.
-//  InforceMonth               = DYNAMIC ? Static: could be set here.
+    // INPUT !! This should depend only on 'yare_input_.InforceIsMec',
+    // but see its assignment in 'ihs_acctval.cpp'.
+//  InforceIsMec               = DYNAMIC
+    InforceYear                = b->yare_input_.InforceYear;
+    InforceMonth               = b->yare_input_.InforceMonth;
 //  MecYear                    = DYNAMIC
 //  MecMonth                   = DYNAMIC
 



reply via email to

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