Ticket #1574: fix-ptime-operator-bug1574.patch
File fix-ptime-operator-bug1574.patch, 1.3 KB (added by , 12 years ago) |
---|
-
boost/date_time/posix_time/posix_time_io.hpp
old new 45 45 std::basic_ostream<CharT, TraitsT>& 46 46 operator<<(std::basic_ostream<CharT, TraitsT>& os, 47 47 const ptime& p) { 48 if (os.fail()) 49 return os; 48 50 boost::io::ios_flags_saver iflags(os); 49 51 typedef boost::date_time::time_facet<ptime, CharT> custom_ptime_facet; 50 52 typedef std::time_put<CharT> std_ptime_facet; … … 112 114 std::basic_ostream<CharT, TraitsT>& 113 115 operator<<(std::basic_ostream<CharT, TraitsT>& os, 114 116 const boost::posix_time::time_period& p) { 117 if (os.fail()) 118 return os; 115 119 boost::io::ios_flags_saver iflags(os); 116 120 typedef boost::date_time::time_facet<ptime, CharT> custom_ptime_facet; 117 121 typedef std::time_put<CharT> std_time_facet; … … 178 182 std::basic_ostream<CharT, Traits>& 179 183 operator<<(std::basic_ostream<CharT, Traits>& os, const time_duration& td) 180 184 { 185 if (os.fail()) 186 return os; 181 187 boost::io::ios_flags_saver iflags(os); 182 188 typedef boost::date_time::time_facet<ptime, CharT> custom_ptime_facet; 183 189 typedef std::time_put<CharT> std_ptime_facet;