lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master f15d7c0 2/8: Remove unwanted postincrement op


From: Greg Chicares
Subject: [lmi-commits] [lmi] master f15d7c0 2/8: Remove unwanted postincrement operator
Date: Sun, 25 Feb 2018 17:15:13 -0500 (EST)

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

    Remove unwanted postincrement operator
---
 calendar_date.hpp      | 1 -
 calendar_date_test.cpp | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/calendar_date.hpp b/calendar_date.hpp
index 7e95d61..c659c3e 100644
--- a/calendar_date.hpp
+++ b/calendar_date.hpp
@@ -126,7 +126,6 @@ jdn_t LMI_SO YmdToJdn(ymd_t);
 class LMI_SO calendar_date
     :boost::additive<calendar_date,int>
     ,boost::totally_ordered<calendar_date>
-    ,boost::unit_steppable<calendar_date>
 {
   public:
     enum
diff --git a/calendar_date_test.cpp b/calendar_date_test.cpp
index 5a62e5a..1cdce60 100644
--- a/calendar_date_test.cpp
+++ b/calendar_date_test.cpp
@@ -1055,7 +1055,7 @@ namespace
         calendar_date t;
         calendar_date u(1899, 12, 31);
         t = u;
-        t++;
+        ++t;
         std::string s = t.str();
         t = add_years_and_months(t, 1, 1, true);
         attained_age(u, t, oe_age_last_birthday);
@@ -1075,7 +1075,7 @@ namespace
 
     void mete_increment()
     {
-        x++;
+        ++x;
     }
 
     void mete_get_y_m_d()



reply via email to

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