lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/002 28a5e54 39/65: make data_type public


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/002 28a5e54 39/65: make data_type public
Date: Wed, 16 Sep 2020 16:55:18 -0400 (EDT)

branch: valyuta/002
commit 28a5e54cd6568f0c647948ff4fe244dd4b14832f
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    make data_type public
---
 currency.hpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/currency.hpp b/currency.hpp
index 96f6705..3b7e62a 100644
--- a/currency.hpp
+++ b/currency.hpp
@@ -45,6 +45,10 @@ using currency = double;
 #if defined USE_CURRENCY_CLASS
 class currency
 {
+    friend std::ostream& operator<<(std::ostream&, currency const&);
+    friend class currency_test;
+
+  public:
   #if defined __GNUC__
   #   pragma GCC diagnostic ignored "-Wuseless-cast"
   #endif // defined __GNUC__
@@ -52,10 +56,6 @@ class currency
 //  using data_type = long double;
     using data_type = std::int64_t;
 
-    friend std::ostream& operator<<(std::ostream&, currency const&);
-    friend class currency_test;
-
-  public:
     static constexpr int cents_digits = 2;
     static constexpr int cents_per_dollar = 100; // 10 ^ cents_digits
 



reply via email to

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