From 27964fa642b67b8b077ce0145910c16f7e5c98e7 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Wed, 2 Nov 2016 14:21:26 -0400 Subject: [PATCH] Fix C++11 constexpr bug in year_lastweek_weekday::weeknum() --- iso_week.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iso_week.h b/iso_week.h index 7654ebd..f94db69 100644 --- a/iso_week.h +++ b/iso_week.h @@ -343,7 +343,7 @@ public: year_lastweek_weekday& operator-=(const years& y) NOEXCEPT; CONSTCD11 iso_week::year year() const NOEXCEPT; - CONSTCD11 iso_week::weeknum weeknum() const NOEXCEPT; + CONSTCD14 iso_week::weeknum weeknum() const NOEXCEPT; CONSTCD11 iso_week::weekday weekday() const NOEXCEPT; CONSTCD14 operator sys_days() const NOEXCEPT; @@ -1299,7 +1299,7 @@ year_lastweek_weekday::operator-=(const years& y) NOEXCEPT CONSTCD11 inline year year_lastweek_weekday::year() const NOEXCEPT {return y_;} -CONSTCD11 +CONSTCD14 inline weeknum year_lastweek_weekday::weeknum() const NOEXCEPT