#2710 closed Bugs (fixed)
Missing/faulty documentation for date_period::expand
| Reported by: | anonymous | Owned by: | az_sw_dude |
|---|---|---|---|
| Milestone: | Boost 1.38.0 | Component: | date_time |
| Version: | Boost 1.37.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
From http://www.boost.org/doc/libs/1_37_0/doc/html/date_time/gregorian.html
date_period expand(days) Add duration to both begin and end.
This is the same documentation as for date_period::shift, and it doesn't make any sense for expand.
Note:
See TracTickets
for help on using tickets.

expandis documented further down like this:date_period expand(days) Subtract duration from begin and add duration to end. date_period dp1(date(2002,Jan,4), date(2002,Jan,10)); dp1.expand(days(2)); // 2002-Jan-02/2002-Jan-12The one I have a problem with is sorted under the "Mutators" header. It could probably have the same documentation.