lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 048b530 1/4: Require compiler to provide oper


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 048b530 1/4: Require compiler to provide operator<=>
Date: Wed, 5 May 2021 12:35:14 -0400 (EDT)

branch: master
commit 048b5307d30e59cacd878664fcb12fdcf1b4571d
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Require compiler to provide operator<=>
---
 gpt_commutation_functions.hpp | 27 ---------------------------
 1 file changed, 27 deletions(-)

diff --git a/gpt_commutation_functions.hpp b/gpt_commutation_functions.hpp
index 7d65d7f..dcc9763 100644
--- a/gpt_commutation_functions.hpp
+++ b/gpt_commutation_functions.hpp
@@ -114,34 +114,7 @@ struct gpt_scalar_parms
     double               qab_child_amt   {                 0.0};
     double               qab_waiver_amt  {                 0.0};
 
-#if defined __cpp_impl_three_way_comparison && __cpp_impl_three_way_comparison
     bool operator==(gpt_scalar_parms const&) const = default;
-#else  // no operator<=>
-    bool operator==(gpt_scalar_parms const& z) const
-        {
-        return
-               z.duration        == duration
-            && z.f3_bft          == f3_bft
-            && z.endt_bft        == endt_bft
-            && z.target_prem     == target_prem
-            && z.chg_sa_base     == chg_sa_base
-            && z.defn_life_ins   == defn_life_ins
-            && z.dbopt_7702      == dbopt_7702
-            && z.gross_1035      == gross_1035
-            && z.issued_today    == issued_today
-            && z.inforce_glp     == inforce_glp
-            && z.inforce_cum_glp == inforce_cum_glp
-            && z.inforce_gsp     == inforce_gsp
-            && z.inforce_cum_pmt == inforce_cum_pmt
-            && z.qab_gio_amt     == qab_gio_amt
-            && z.qab_adb_amt     == qab_adb_amt
-            && z.qab_term_amt    == qab_term_amt
-            && z.qab_spouse_amt  == qab_spouse_amt
-            && z.qab_child_amt   == qab_child_amt
-            && z.qab_waiver_amt  == qab_waiver_amt
-            ;
-        }
-#endif // no operator<=>
 };
 
 void assert_sanity(gpt_scalar_parms const&);



reply via email to

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