Index: usage_examples.xml =================================================================== --- usage_examples.xml (revision 62521) +++ usage_examples.xml (working copy) @@ -17,7 +17,7 @@ using namespace boost::gregorian; date weekstart(2002,Feb,1); - date weekend = weekstart + week(1); + date weekend = weekstart + weeks(1); date d2 = d1 + days(5); date today = day_clock::local_day(); if (d2 >= today) {} //date comparison operators @@ -39,7 +39,8 @@ date d5 = next_weekday(d4, Sunday); //calculate Sunday following d4 //US labor day is first Monday in Sept - nth_day_of_the_week_in_month labor_day(nth_dow::first,Monday, Sep); + typedef nth_day_of_the_week_in_month nth_dow; + nth_dow labor_day(nth_dow::first,Monday, Sep); //calculate a specific date for 2004 from functor date d6 = labor_day.get_date(2004);