From e09eee1a592b91909d329def269a6aa44fd60cee Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 26 Sep 2015 14:58:24 -0400 Subject: [PATCH] ISO8601d: Added ::operator> --- src/ISO8601.cpp | 6 ++++++ src/ISO8601.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/ISO8601.cpp b/src/ISO8601.cpp index c1fa548ce..480297148 100644 --- a/src/ISO8601.cpp +++ b/src/ISO8601.cpp @@ -1067,6 +1067,12 @@ bool ISO8601d::operator< (const ISO8601d& rhs) const return _date < rhs._date; } +//////////////////////////////////////////////////////////////////////////////// +bool ISO8601d::operator> (const ISO8601d& rhs) const +{ + return _date > rhs._date; +} + //////////////////////////////////////////////////////////////////////////////// void ISO8601p::clear () { diff --git a/src/ISO8601.h b/src/ISO8601.h index 36f871774..ca10bd9cc 100644 --- a/src/ISO8601.h +++ b/src/ISO8601.h @@ -68,6 +68,7 @@ public: bool operator== (const ISO8601d&) const; bool operator!= (const ISO8601d&) const; bool operator< (const ISO8601d&) const; + bool operator> (const ISO8601d&) const; private: void clear ();