Opened 6 years ago
Closed 5 years ago
#12630 closed Bugs (fixed)
Limits for boost::gregorian are inconsistent
| Reported by: | Owned by: | James E. King, III | |
|---|---|---|---|
| Milestone: | Boost 1.67.0 | Component: | date_time |
| Version: | Boost 1.61.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
boost::gregorian::greg_year::max() returns 10000 but boost::gregorian::date(max_date_time).year() returns 9999
This can lead to date objects being constructed that are greater than the maximum date.
Change History (3)
comment:1 by , 5 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 5 years ago
| Milestone: | To Be Determined → Boost 1.67.0 |
|---|
comment:3 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Fix merged to master; resolved.
Note:
See TracTickets
for help on using tickets.

https://github.com/boostorg/date_time/pull/71