From: Jeff Garland (jeff_at_[hidden])
Date: 2004-04-17 15:57:28
On Tue, 13 Apr 2004 04:17:13 -0700, Jeff Garland wrote
> On Tue, 13 Apr 2004 10:48:26 +0200, Pavol Droba wrote
> > Hi,
> > I have a problem with the date-time library. I have a code like this:
> > namespace date=boost::gregorian;
> > date::date dtMin(date::min_date_time);
> > cout << dtMin << endl;
> > Last line throws out-of-range exception. As far as I understand the
> > meaning of min_date_time, this should not happen. If this is a
> > standard behaviour, how can I get the minimal displayable date?
> This is a bug. You are going to use date dtMin(1400, 1, 1) for now.
> I can't fix it for a few days.
The fix for this is in CVS now. You need to update
boost/date_time/gregorian/greg_date.hpp. Tests also updated to ensure the
correct operation. There was a subtle hole in the tests that did not detect
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk