Opened 7 years ago
Closed 5 years ago
#12074 closed Bugs (fixed)
Incorrect example in documentation for boost::gregorian::date::day_of_week()
Reported by: | Owned by: | James E. King, III | |
---|---|---|---|
Milestone: | Boost 1.67.0 | Component: | date_time |
Version: | Boost 1.60.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description
The documentation (http://www.boost.org/doc/libs/1_60_0/doc/html/date_time/gregorian.html#date_time.gregorian.date_class) offers this example:
greg_day_of_week day_of_week() const
Get the day of the week (Sunday, Monday, etc.)
date d(2002,Jan,10); d.day(); // --> Thursday
I would expect the last line to say d.day_of_week() instead of d.day().
Change History (5)
comment:1 by , 6 years ago
Component: | Documentation → date_time |
---|---|
Owner: | changed from | to
comment:2 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 5 years ago
comment:4 by , 5 years ago
Milestone: | To Be Determined → Boost 1.67.0 |
---|
comment:5 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/66