Ticket #583: date_generators.hpp.patch

File date_generators.hpp.patch, 807 bytes (added by ccambly@…, 15 years ago)

date time generator fix. nth_as_str is used before it is declared.

  • boost/date_time/date_generators.hpp

    old new  
    153153   month_type month_;
    154154 };
    155155
     156  //! Returns nth arg as string. 1 -> "first", 2 -> "second", max is 5.
     157  BOOST_DATE_TIME_DECL const char* nth_as_str(int n);
    156158
    157159  //! Useful generator functor for finding holidays
    158160  /*! Based on the idea in Cal. Calc. for finding holidays that are
     
    241243    week_num wn_;
    242244    day_of_week_type dow_;
    243245  };
    244  
    245   //! Returns nth arg as string. 1 -> "first", 2 -> "second", max is 5.
    246   BOOST_DATE_TIME_DECL const char* nth_as_str(int n);
     246
    247247
    248248  //! Useful generator functor for finding holidays and daylight savings
    249249  /*! Similar to nth_kday_of_month, but requires less paramters