Fixed addition of multi-year duration to year_month.

* Added new overloads for operator+/- between year_month and duration
  that is convertible to years, so it is better candidate for operands
  that are convertible to both years and months. To preserve
  functionality, this operator is conditionally noexcept.

* Reworked year_month_day, year_month_day_last, year_month_weekday,
  and year_month_weekday_last.

* Added tests for this new functionality.
This commit is contained in:
Tomasz Kamiński authored and Howard Hinnant committed 2018-05-12 18:21:24 -04:00
1 parent 5d15157bbb
commit 328cecaa56
4 files changed
+691 -444

No files matched your search

+386 -436
View File
File diff suppressed because it is too large. Load diff