lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 5fcaa33 05/13: Move a line; add a comment


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 5fcaa33 05/13: Move a line; add a comment
Date: Sat, 15 Jun 2019 20:25:36 -0400 (EDT)

branch: master
commit 5fcaa33cb22b98247cfc456e19671728fa9c8952
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Move a line; add a comment
    
    Applied trivial changes to make the next commit simpler.
---
 verify_products.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/verify_products.cpp b/verify_products.cpp
index 03b7963..1c52314 100644
--- a/verify_products.cpp
+++ b/verify_products.cpp
@@ -63,6 +63,8 @@ void verify_one_cell
     auto const axis_g = db.query<bool            >(DB_Irc7702QAxisGender);
     auto const axis_s = db.query<bool            >(DB_Irc7702QAxisSmoking);
 
+    product_data const p(product_name);
+
     if((!axis_g && "Unisex" != gender) || (!axis_s && "Unismoke" != smoking))
         {
         std::cout << "  skipping " << gender << ' ' << smoking << std::endl;
@@ -83,18 +85,18 @@ void verify_one_cell
 
     std::vector<double> const v0 = cso_table
         (era
-        ,oe_orthodox
+        ,oe_orthodox // No other option currently supported for 7702.
         ,a_b
         ,mce_gender (gender).value()
         ,mce_smoking(smoking).value()
         );
-    product_data const p(product_name);
     std::string const f = AddDataDir(p.datum("Irc7702QFilename"));
     actuarial_table const a(f, t);
     std::vector<double> const v1 = a.values
         (a.min_age()
         ,1 + a.max_age() - a.min_age()
         );
+
     if(v0 == v1)
         {
         std::cout



reply via email to

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