[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()
- [lmi-commits] [lmi] master updated (0c16a43 -> 5d71aea), Greg Chicares, 2018/02/25
- [lmi-commits] [lmi] master f15d7c0 2/8: Remove unwanted postincrement operator,
Greg Chicares <=
- [lmi-commits] [lmi] master f481f1e 1/8: Expunge commentary that has become irrelevant, Greg Chicares, 2018/02/25
- [lmi-commits] [lmi] master db53742 3/8: Define only the relational operators that have proved useful for dates, Greg Chicares, 2018/02/25
- [lmi-commits] [lmi] master 1c65496 5/8: Dispense with boost/operators for one class, Greg Chicares, 2018/02/25
- [lmi-commits] [lmi] master 340ae3c 4/8: Test mixed-mode date arithmetic, Greg Chicares, 2018/02/25
- [lmi-commits] [lmi] master 2598df5 6/8: Dispense with boost/operators for one class, Greg Chicares, 2018/02/25
- [lmi-commits] [lmi] master 5d71aea 8/8: Remove obsolete references to boost, Greg Chicares, 2018/02/25
- [lmi-commits] [lmi] master 0819953 7/8: Dispense with boost/operators altogether, Greg Chicares, 2018/02/25