Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2005-01-27 07:51:42


On Thu, 27 Jan 2005 10:52:57 +0100, Wolfgang Fertsak wrote
> Jeff Garland schrieb:
> > That would be a bug. Note that the only invalid dates that will do this are
> > non-leap year Feb 29 dates. That is, strDate("2005-02-30") will throw the
> > exception.
> strDate("2005-02-30") doesn't throw an exception either (I used MSVC
>
> 7.1, Win2000), but the fix in line 146 (in boost 1.32 release it is
> line 141) also corrects that.
>
> Wolfgang

Hmm, I tested it on gcc 3.2 before I wrote that. Are you sure you remembered
to remove the first date construction from the program before you tested it?
That is, if you left in:

     date Date1(2005,2,31);

you never actually execute the code below it since the exception fires at that
point. Well anyway, it's fixed now....

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