[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 485e19b 07/14: Favor the rule of zero
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 485e19b 07/14: Favor the rule of zero |
Date: |
Mon, 5 Apr 2021 18:26:46 -0400 (EDT) |
branch: master
commit 485e19b6e91a2aad5998ceced3c4da2c10bb1236
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Favor the rule of zero
Expunged special member functions that needn't be specified.
---
commutation_functions.hpp | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/commutation_functions.hpp b/commutation_functions.hpp
index aa0b09a..3354cc4 100644
--- a/commutation_functions.hpp
+++ b/commutation_functions.hpp
@@ -39,8 +39,6 @@ class LMI_SO OLCommFns final
,std::vector<double> const& a_i
);
- ~OLCommFns() = default;
-
double Domega() const {return ed.back();}
std::vector<double> const& ED() const {return ed;}
std::vector<double> const& D() const {return d;}
@@ -49,9 +47,6 @@ class LMI_SO OLCommFns final
std::vector<double> const& M() const {return m;}
private:
- OLCommFns(OLCommFns const&) = delete;
- OLCommFns& operator=(OLCommFns const&) = delete;
-
int Length;
std::vector<double> const& q;
@@ -90,8 +85,6 @@ class LMI_SO ULCommFns final
,mcenum_mode mode
);
- ~ULCommFns() = default;
-
double aDomega() const {return ead.back();}
std::vector<double> const& EaD() const {return ead;}
std::vector<double> const& aD() const {return ad;}
@@ -101,9 +94,6 @@ class LMI_SO ULCommFns final
std::vector<double> const& kM() const {return km;}
private:
- ULCommFns(ULCommFns const&) = delete;
- ULCommFns& operator=(ULCommFns const&) = delete;
-
std::vector<double> qc;
std::vector<double> ic;
std::vector<double> ig;
- [lmi-commits] [lmi] master updated (dd6ee0a -> 8aa09b9), Greg Chicares, 2021/04/05
- [lmi-commits] [lmi] master 40218dc 03/14: Factor out commutation-function speed tests, Greg Chicares, 2021/04/05
- [lmi-commits] [lmi] master b8f43e0 06/14: Transpose several unit-test functions, Greg Chicares, 2021/04/05
- [lmi-commits] [lmi] master e6ed669 01/14: Test guideline premium calculations with more complications, Greg Chicares, 2021/04/05
- [lmi-commits] [lmi] master b1eecea 02/14: Stabilize unit-test timing, Greg Chicares, 2021/04/05
- [lmi-commits] [lmi] master 28cabc2 04/14: Prefer lambdas to std::bind(), Greg Chicares, 2021/04/05
- [lmi-commits] [lmi] master 61a04eb 08/14: Make commutation functions default constructible, Greg Chicares, 2021/04/05
- [lmi-commits] [lmi] master df25463 12/14: Avoid operator new, Greg Chicares, 2021/04/05
- [lmi-commits] [lmi] master b657767 13/14: Remove conditionals that serve no further purpose, Greg Chicares, 2021/04/05
- [lmi-commits] [lmi] master 23fe71f 11/14: Do away with an undesirable smart pointer [290], Greg Chicares, 2021/04/05
- [lmi-commits] [lmi] master 485e19b 07/14: Favor the rule of zero,
Greg Chicares <=
- [lmi-commits] [lmi] master 762056e 05/14: Prefer PETE's operator<<=() to assign(), Greg Chicares, 2021/04/05
- [lmi-commits] [lmi] master ed251fc 09/14: Test implicit special member functions, Greg Chicares, 2021/04/05
- [lmi-commits] [lmi] master c2087ae 10/14: Update a comment, Greg Chicares, 2021/04/05
- [lmi-commits] [lmi] master 8aa09b9 14/14: Expunge some pointless defect markers [287], Greg Chicares, 2021/04/05