|
Boost Users : |
Subject: [Boost-users] [date-time] Should this be an exception
From: Larry (lknain_at_[hidden])
Date: 2008-10-05 21:24:59
Using 1_35_0 on MSVS .NET 2003
string x("200810051");
try {
date d(from_undelimited_string(x));
} catch (exception& e) {
}
I would have though this would thrown an exception (too many digits in the
date) but it didn't. I may have missed it in the doc that the constructor
only considers the first 8 digits (for the undelimited case - actually
probably the from_undelimited_string function). Or did I miss something
else?
Larry
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