mirror of
https://github.com/HowardHinnant/date.git
synced 2026-08-03 20:14:08 +02:00
Expose iso_week::year::is_leap()
This commit is contained in:
committed by
Howard Hinnant
parent
50acf3ffd8
commit
cc4685a21e
@@ -93,6 +93,9 @@ main()
|
||||
static_assert(year{2015} <= 2015_y, "");
|
||||
static_assert(year{2016} >= 2015_y, "");
|
||||
|
||||
static_assert(year{2015}.is_leap(), "");
|
||||
static_assert(!year{2016}.is_leap(), "");
|
||||
|
||||
auto y = year{2014};
|
||||
assert(++y == year{2015});
|
||||
assert(y == year{2015});
|
||||
|
||||
Reference in New Issue
Block a user