Boost logo

Boost :

Subject: Re: [boost] boost::posix_time::duration_from_string throws std::out_of_range
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2015-04-11 02:37:53


On Fri, Apr 10, 2015 at 6:16 PM, George Georgiev <
george.georgiev.sf_at_[hidden]> wrote:

> 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.
>
> Please file a bug against boost date_time at
     https://svn.boost.org/trac/boost/newticket

Feel free to assign it to me

-- Marshall


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