[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] valyuta/002 7be2c59 4/8: Comment out member function
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] valyuta/002 7be2c59 4/8: Comment out member functions that are apparently unused |
Date: |
Mon, 5 Oct 2020 19:57:18 -0400 (EDT) |
branch: valyuta/002
commit 7be2c59aeb7b57a0a9127cfc8780cb2c8b476f94
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Comment out member functions that are apparently unused
---
currency.hpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/currency.hpp b/currency.hpp
index 6090009..5a3365d 100644
--- a/currency.hpp
+++ b/currency.hpp
@@ -83,7 +83,9 @@ class currency
// ctor ambiguates no other.
explicit currency(data_type c, raw_cents) : m_ {c} {}
explicit currency(double d) : m_ {from_double(d)} {}
+#if 0 // Apparently unused.
explicit currency(int i) : m_ {from_int (i)} {}
+#endif // 0
currency& operator=(currency const&) = default;
@@ -112,8 +114,10 @@ class currency
data_type cents() const {return m_;}
private:
+#if 0 // Apparently unused.
data_type from_int(int i) const
{return cents_per_dollar * bourn_cast<data_type>(i);}
+#endif // 0
// Want something just slightly more permissive:
// data_type from_double(double d) const {return bourn_cast<data_type>(100.0
* d);}
// Far too permissive:
- [lmi-commits] [lmi] valyuta/002 updated (53eefda -> a3f1b6f), Greg Chicares, 2020/10/05
- [lmi-commits] [lmi] valyuta/002 3d21745 3/8: Fix unit tests, Greg Chicares, 2020/10/05
- [lmi-commits] [lmi] valyuta/002 11484a9 7/8: Differentiate integral from floating conversions, Greg Chicares, 2020/10/05
- [lmi-commits] [lmi] valyuta/002 3d1ad5e 2/8: Avoid another run-time check, Greg Chicares, 2020/10/05
- [lmi-commits] [lmi] valyuta/002 1700262 1/8: Make fewer costly assertions, Greg Chicares, 2020/10/05
- [lmi-commits] [lmi] valyuta/002 a8bfa96 5/8: Improve encapsulation, Greg Chicares, 2020/10/05
- [lmi-commits] [lmi] valyuta/002 a3f1b6f 8/8: Probably prefer floating to integral datatype, Greg Chicares, 2020/10/05
- [lmi-commits] [lmi] valyuta/002 7be2c59 4/8: Comment out member functions that are apparently unused,
Greg Chicares <=
- [lmi-commits] [lmi] valyuta/002 bfc32eb 6/8: Use a more appropriate type for 'cents_per_dollar', Greg Chicares, 2020/10/05