Ticket #8856: date_time.patch

File date_time.patch, 4.7 KB (added by Chris Stylianou <chris5287@…>, 9 years ago)
  • boost/date_time/date_parsing.hpp

     
    113113        spec_str = "mdy";
    114114      }
    115115
    116       typedef typename date_type::year_type year_type;
    117116      typedef typename date_type::month_type month_type;
    118117      unsigned pos = 0;
    119118      unsigned short year(0), month(0), day(0);
     
    160159    parse_undelimited_date(const std::string& s) {
    161160      int offsets[] = {4,2,2};
    162161      int pos = 0;
    163       typedef typename date_type::year_type year_type;
    164162      //typename date_type::ymd_type ymd((year_type::min)(),1,1);
    165163      unsigned short y = 0, m = 0, d = 0;
    166164
  • boost/date_time/local_time/local_time_io.hpp

     
    3636    boost::io::ios_flags_saver iflags(os);
    3737    typedef local_date_time time_type;//::utc_time_type typename
    3838    typedef date_time::time_facet<time_type, CharT> custom_time_facet;
    39     typedef std::time_put<CharT> std_time_facet;
    4039    std::ostreambuf_iterator<CharT> oitr(os);
    4140
    4241    if(std::has_facet<custom_time_facet>(os.getloc())) {
     
    123122             const boost::local_time::local_time_period& p) {
    124123    boost::io::ios_flags_saver iflags(os);
    125124    typedef boost::date_time::time_facet<local_date_time, CharT> custom_facet;
    126     typedef std::time_put<CharT> std_time_facet;
    127125    std::ostreambuf_iterator<CharT> oitr(os);
    128126    if (std::has_facet<custom_facet>(os.getloc())) {
    129127      std::use_facet<custom_facet>(os.getloc()).put(oitr, os, os.fill(), p);
  • boost/date_time/posix_time/posix_time_io.hpp

     
    4747             const ptime& p) {
    4848    boost::io::ios_flags_saver iflags(os);
    4949    typedef boost::date_time::time_facet<ptime, CharT> custom_ptime_facet;
    50     typedef std::time_put<CharT>                  std_ptime_facet;
    5150    std::ostreambuf_iterator<CharT> oitr(os);
    5251    if (std::has_facet<custom_ptime_facet>(os.getloc()))
    5352      std::use_facet<custom_ptime_facet>(os.getloc()).put(oitr, os, os.fill(), p);
     
    114113             const boost::posix_time::time_period& p) {
    115114    boost::io::ios_flags_saver iflags(os);
    116115    typedef boost::date_time::time_facet<ptime, CharT> custom_ptime_facet;
    117     typedef std::time_put<CharT>                  std_time_facet;
    118116    std::ostreambuf_iterator<CharT> oitr(os);
    119117    if (std::has_facet<custom_ptime_facet>(os.getloc())) {
    120118      std::use_facet<custom_ptime_facet>(os.getloc()).put(oitr, os, os.fill(), p);
     
    180178  {
    181179    boost::io::ios_flags_saver iflags(os);
    182180    typedef boost::date_time::time_facet<ptime, CharT> custom_ptime_facet;
    183     typedef std::time_put<CharT>                  std_ptime_facet;
    184181    std::ostreambuf_iterator<CharT> oitr(os);
    185182    if (std::has_facet<custom_ptime_facet>(os.getloc()))
    186183      std::use_facet<custom_ptime_facet>(os.getloc()).put(oitr, os, os.fill(), td);
  • boost/date_time/string_convert.hpp

     
    2121  inline
    2222  std::basic_string<OutputT> convert_string_type(const std::basic_string<InputT>& inp_str)
    2323  {
    24     typedef std::basic_string<InputT> input_type;
    2524    typedef std::basic_string<OutputT> output_type;
    2625    output_type result;
    2726    result.insert(result.begin(), inp_str.begin(), inp_str.end());
  • boost/date_time/strings_from_facet.hpp

     
    3535{
    3636  typedef std::basic_string<charT> string_type;
    3737  typedef std::vector<string_type> collection_type;
    38   typedef std::basic_ostringstream<charT> ostream_type;
    3938  typedef std::ostreambuf_iterator<charT> ostream_iter_type;
    4039  typedef std::basic_ostringstream<charT> stringstream_type;
    4140  typedef std::time_put<charT>           time_put_facet_type;
     
    8685{
    8786  typedef std::basic_string<charT> string_type;
    8887  typedef std::vector<string_type> collection_type;
    89   typedef std::basic_ostringstream<charT> ostream_type;
    9088  typedef std::ostreambuf_iterator<charT> ostream_iter_type;
    9189  typedef std::basic_ostringstream<charT> stringstream_type;
    9290  typedef std::time_put<charT>           time_put_facet_type;