From 323e2fa5fd7786e40014b02937a404ceb4c225d3 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 21 Dec 2015 21:52:31 -0500 Subject: [PATCH] Remove is_leap from iso_week::year --- iso_week.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/iso_week.h b/iso_week.h index 0f010e5..a9e2fe0 100644 --- a/iso_week.h +++ b/iso_week.h @@ -141,8 +141,6 @@ public: year& operator+=(const years& y) NOEXCEPT; year& operator-=(const years& y) NOEXCEPT; - CONSTCD11 bool is_leap() const NOEXCEPT; - CONSTCD11 explicit operator int() const NOEXCEPT; CONSTCD11 bool ok() const NOEXCEPT; @@ -568,14 +566,6 @@ inline year year::operator--(int) NOEXCEPT {auto tmp(*this); --(*this); return t inline year& year::operator+=(const years& y) NOEXCEPT {*this = *this + y; return *this;} inline year& year::operator-=(const years& y) NOEXCEPT {*this = *this - y; return *this;} -CONSTCD11 -inline -bool -year::is_leap() const NOEXCEPT -{ - return y_ % 4 == 0 && (y_ % 100 != 0 || y_ % 400 == 0); -} - CONSTCD11 inline year::operator int() const NOEXCEPT {return y_;} CONSTCD11 inline bool year::ok() const NOEXCEPT {return min() <= *this && *this <= max();}