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