Opened 6 years ago

Closed 5 years ago

#12630 closed Bugs (fixed)

Limits for boost::gregorian are inconsistent

Reported by: tim.g.armstrong@… 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 James E. King, III, 5 years ago

Owner: changed from az_sw_dude to James E. King, III
Status: newassigned

comment:2 by James E. King, III, 5 years ago

Milestone: To Be DeterminedBoost 1.67.0

comment:3 by James E. King, III, 5 years ago

Resolution: fixed
Status: assignedclosed

Fix merged to master; resolved.

Note: See TracTickets for help on using tickets.