id summary reporter owner description type status milestone component version severity resolution keywords cc 1574 operator<< for boost::posix_time::ptime ignores ostream flags adam@… az_sw_dude "Consider the following: {{{ boost::posix_time::ptime a; cout << ""one "" << 1 << endl; cout.clear(ios::failbit); cout << ""two "" << 2 << endl; cout << ""time "" << a << endl; cout << ""three"" << 3 << endl; cout.clear(ios::goodbit); cout << ""four "" << 4 << endl; }}} Since cout should not produce output when ios::failbit is set, one would expect the output to be: {{{ one 1 four 4 }}} However, the output is: {{{ one 1 not-a-date-timefour 4 }}}" Patches new date_time Boost 1.45.0 Problem