
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@y..., "Jeff Garland" <jeff@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