id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 7868,chrono_io parses time incorrectly (1.53 and 1.52),Johan Lundberg ,viboes,"streaming the result of boost::chrono::system_clock::now() into a stringstream, and back to a boost::chrono::system_clock::time_point gives wrong results. With boost 1.52 the error is exactly one second (when using the default formats) With boost 1.53 beta (of today) the parsed times are semi-random around 1974. With user-defined formats the error behaves a little differently: In my example (attached) the time is correct up to the seconds, which are always parsed as 01 both with boost 1.52 and 1.53. cheers, Johan Lundberg ------------- Full example: {{{ #define BOOST_CHRONO_VERSION 2 #define BOOST_CHRONO_PROVIDES_DATE_IO_FOR_SYSTEM_CLOCK_TIME_POINT 1 #include #include #include #include #include #include int main() { using namespace boost; using namespace boost::chrono; boost::chrono::system_clock::time_point atnow= boost::chrono::system_clock::now(); { std::stringstream strm; std::stringstream strm2; // does not change anything: strm<>atnow2; strm2<(atnow2 - atnow).count() <>atnow2; strm2<