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: micol972@… 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 anonymous, 6 years ago

Component: Documentationdate_time
Owner: changed from Matias Capeletto to az_sw_dude

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

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

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

Milestone: To Be DeterminedBoost 1.67.0

comment:5 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.