Boost C++ Libraries: Ticket #2904: boost::date_time io fails simple back-and-forth test https://svn.boost.org/trac10/ticket/2904 <p> set up a stringstream and use boost::io facets to specify a time format. Sent a time_t from a known time through it to get a string (converting to posix_time along the way), then back through to to get a time, and back through to get a string. The string results should always match, and the time_t results always match. Both tests fail. </p> <p> stringstream&gt;&gt; operator does not seem to modify the supplied instance of class boost::posix_time. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2904 Trac 1.4.3 mgl@… Thu, 02 Apr 2009 21:20:44 GMT attachment set https://svn.boost.org/trac10/ticket/2904 https://svn.boost.org/trac10/ticket/2904 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">time_test.h</span> </li> </ul> <p> date_time test to demo problem with boost::date_time ticket 2904 </p> Ticket anonymous Thu, 02 Apr 2009 21:22:44 GMT <link>https://svn.boost.org/trac10/ticket/2904#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2904#comment:1</guid> <description> <p> built with gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC) on FC 10 platform. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 02 Apr 2009 22:44:08 GMT</pubDate> <title>severity changed https://svn.boost.org/trac10/ticket/2904#comment:2 https://svn.boost.org/trac10/ticket/2904#comment:2 <ul> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Problem</span> </li> </ul> <p> Downgraded priority after I realized that a work-around was to have two streams, since one problem appears to be that loading the output facet erases the input facet. This behaviour still seems pretty strange. I would think that a detailed investigation is merited. At least the documentation should reflect it, shouldn't it? </p> Ticket