|
Boost Users : |
From: deane_yang (Deane_Yang_at_[hidden])
Date: 2002-11-06 23:26:31
Thanks! What I did myself was to find the code defining month_iterator,
copied it, and changed "month" to "year". It seemed to work.
I'm now having a strange problem, where my code using the Boost
Date-Time Library compiled with VC6 runs fine in debug mode
but throws an exception, saying that the year is out of range, in release mode.
I don't suppose you have any idea why this might be happening?
--- In Boost-Users_at_y..., "Jeff Garland" <jeff_at_c...> wrote:
> > Contrary to the documentation, the type "year_iterator"
> > does not appear to be defined in the file "gregorian_types.hpp".
> > Or did I miss something?
>
> No, but apparently I did...
>
> Until the typedef gets put into the library you can create it as
> follows:
>
> namespace boost {
> namespace gregorian {
>
> typedef date_time::date_itr<date_time::year_functor<date>,
> date> year_iterator;
>
> } }
>
> Jeff
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net