Boost logo

Boost :

Subject: [boost] boost::posix_time::duration_from_string throws std::out_of_range
From: George Georgiev (george.georgiev.sf_at_[hidden])
Date: 2015-04-10 21:16:34


Hi,

I just noticed that boost::posix_time::duration_from_string throws
std::out_of_range when I pass empty string to it. This seems like a bug,
IMHO it should throw boost::bad_lexical_cast as it does for any other
problem with the input.

Thanks,
George


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk