Ticket #8856: date_time.patch
File date_time.patch, 4.7 KB (added by , 9 years ago) |
---|
-
boost/date_time/date_parsing.hpp
113 113 spec_str = "mdy"; 114 114 } 115 115 116 typedef typename date_type::year_type year_type;117 116 typedef typename date_type::month_type month_type; 118 117 unsigned pos = 0; 119 118 unsigned short year(0), month(0), day(0); … … 160 159 parse_undelimited_date(const std::string& s) { 161 160 int offsets[] = {4,2,2}; 162 161 int pos = 0; 163 typedef typename date_type::year_type year_type;164 162 //typename date_type::ymd_type ymd((year_type::min)(),1,1); 165 163 unsigned short y = 0, m = 0, d = 0; 166 164 -
boost/date_time/local_time/local_time_io.hpp
36 36 boost::io::ios_flags_saver iflags(os); 37 37 typedef local_date_time time_type;//::utc_time_type typename 38 38 typedef date_time::time_facet<time_type, CharT> custom_time_facet; 39 typedef std::time_put<CharT> std_time_facet;40 39 std::ostreambuf_iterator<CharT> oitr(os); 41 40 42 41 if(std::has_facet<custom_time_facet>(os.getloc())) { … … 123 122 const boost::local_time::local_time_period& p) { 124 123 boost::io::ios_flags_saver iflags(os); 125 124 typedef boost::date_time::time_facet<local_date_time, CharT> custom_facet; 126 typedef std::time_put<CharT> std_time_facet;127 125 std::ostreambuf_iterator<CharT> oitr(os); 128 126 if (std::has_facet<custom_facet>(os.getloc())) { 129 127 std::use_facet<custom_facet>(os.getloc()).put(oitr, os, os.fill(), p); -
boost/date_time/posix_time/posix_time_io.hpp
47 47 const ptime& p) { 48 48 boost::io::ios_flags_saver iflags(os); 49 49 typedef boost::date_time::time_facet<ptime, CharT> custom_ptime_facet; 50 typedef std::time_put<CharT> std_ptime_facet;51 50 std::ostreambuf_iterator<CharT> oitr(os); 52 51 if (std::has_facet<custom_ptime_facet>(os.getloc())) 53 52 std::use_facet<custom_ptime_facet>(os.getloc()).put(oitr, os, os.fill(), p); … … 114 113 const boost::posix_time::time_period& p) { 115 114 boost::io::ios_flags_saver iflags(os); 116 115 typedef boost::date_time::time_facet<ptime, CharT> custom_ptime_facet; 117 typedef std::time_put<CharT> std_time_facet;118 116 std::ostreambuf_iterator<CharT> oitr(os); 119 117 if (std::has_facet<custom_ptime_facet>(os.getloc())) { 120 118 std::use_facet<custom_ptime_facet>(os.getloc()).put(oitr, os, os.fill(), p); … … 180 178 { 181 179 boost::io::ios_flags_saver iflags(os); 182 180 typedef boost::date_time::time_facet<ptime, CharT> custom_ptime_facet; 183 typedef std::time_put<CharT> std_ptime_facet;184 181 std::ostreambuf_iterator<CharT> oitr(os); 185 182 if (std::has_facet<custom_ptime_facet>(os.getloc())) 186 183 std::use_facet<custom_ptime_facet>(os.getloc()).put(oitr, os, os.fill(), td); -
boost/date_time/string_convert.hpp
21 21 inline 22 22 std::basic_string<OutputT> convert_string_type(const std::basic_string<InputT>& inp_str) 23 23 { 24 typedef std::basic_string<InputT> input_type;25 24 typedef std::basic_string<OutputT> output_type; 26 25 output_type result; 27 26 result.insert(result.begin(), inp_str.begin(), inp_str.end()); -
boost/date_time/strings_from_facet.hpp
35 35 { 36 36 typedef std::basic_string<charT> string_type; 37 37 typedef std::vector<string_type> collection_type; 38 typedef std::basic_ostringstream<charT> ostream_type;39 38 typedef std::ostreambuf_iterator<charT> ostream_iter_type; 40 39 typedef std::basic_ostringstream<charT> stringstream_type; 41 40 typedef std::time_put<charT> time_put_facet_type; … … 86 85 { 87 86 typedef std::basic_string<charT> string_type; 88 87 typedef std::vector<string_type> collection_type; 89 typedef std::basic_ostringstream<charT> ostream_type;90 88 typedef std::ostreambuf_iterator<charT> ostream_iter_type; 91 89 typedef std::basic_ostringstream<charT> stringstream_type; 92 90 typedef std::time_put<charT> time_put_facet_type;