Subject: [Boost-bugs] [Boost C++ Libraries] #6860: Cannot read negative time_duration
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-03 18:43:24
#6860: Cannot read negative time_duration
------------------------------------+---------------------------------------
Reporter: damienrg+bug@⦠| Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: To Be Determined | Component: date_time
Version: Boost 1.49.0 | Severity: Problem
Keywords: |
------------------------------------+---------------------------------------
Loading a negative time_duration saved with operator<< does not work.
Test program:
{{{
#include <cassert>
#include <sstream>
#include <boost/date_time.hpp>
int main()
{
boost::posix_time::time_duration expected(0, 0, 0, -1);
std::stringstream stream;
stream << expected;
boost::posix_time::time_duration time;
stream >> time;
assert(expected == time);
return 0;
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6860> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC