Boost C++ Libraries: Ticket #6860: Cannot read negative time_duration https://svn.boost.org/trac10/ticket/6860 <p> Loading a negative time_duration saved with operator&lt;&lt; does not work. </p> <p> Test program: </p> <pre class="wiki">#include &lt;cassert&gt; #include &lt;sstream&gt; #include &lt;boost/date_time.hpp&gt; int main() { boost::posix_time::time_duration expected(0, 0, 0, -1); std::stringstream stream; stream &lt;&lt; expected; boost::posix_time::time_duration time; stream &gt;&gt; time; assert(expected == time); return 0; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6860 Trac 1.4.3 anonymous Thu, 03 May 2012 18:43:36 GMT attachment set https://svn.boost.org/trac10/ticket/6860 https://svn.boost.org/trac10/ticket/6860 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">negative_time_duration.patch</span> </li> </ul> Ticket