[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
- [lmi-commits] [lmi] master 521916f 06/13: Expunge a pointless comment, (continued)
- [lmi-commits] [lmi] master 521916f 06/13: Expunge a pointless comment, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master b746578 02/13: Remove a defect marker [346], Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 11c3b2d 07/13: Mark skipped initializations uniformly, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 1492645 04/13: Declare two variables in dependency order, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 25cc457 05/13: Mark formerly-missing variables as dynamically-assigned, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 278dab3 10/13: Explain some curious comments, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 180c84e 03/13: Initialize ledger members in declaration order, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 517a8fe 01/13: Remove a defect marker: refractory compositing issue [347], Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master e09ae5e 09/13: Improve documentation, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 664a0df 11/13: Expunge unused ledger vector 'TgtPrem', Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 45cf6f4 13/13: Move initialization of some ledger members,
Greg Chicares <=
- [lmi-commits] [lmi] master 1611b81 12/13: Expunge several unused ledger scalars, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master e653634 08/13: Regularize whitespace, Greg Chicares, 2020/04/14