Ticket #1728: date_time_unref.patch

File date_time_unref.patch, 3.2 KB (added by Richard Webb <richard.webb@…>, 15 years ago)
  • date_parsing.hpp

     
    210210    inline
    211211    date_type
    212212    from_stream_type(iterator_type& beg,
    213                      iterator_type& end,
     213                     iterator_type& /*end*/,
    214214                     std::string)
    215215    {
    216216      return parse_date<date_type>(*beg);
     
    246246    inline
    247247    date_type
    248248    from_stream_type(iterator_type& beg,
    249                      iterator_type& end,
     249                     iterator_type& /*end*/,
    250250                     std::wstring) {
    251251      std::wstring ws = *beg;
    252252      std::stringstream ss("");
  • local_timezone_defs.hpp

     
    6666         if (y < 2007) return Apr;
    6767         return Mar;
    6868       }
    69        static day_of_week_type end_day(year_type y) {return Sunday;}
     69       static day_of_week_type end_day(year_type /*y*/) {return Sunday;}
    7070       static month_type end_month(year_type y)
    7171       {
    7272         if (y < 2007) return Oct;
  • period_parser.hpp

     
    119119    period_type get_period(stream_itr_type& sitr,
    120120                           stream_itr_type& stream_end,
    121121                           std::ios_base& a_ios,
    122                            const period_type& p,
     122                           const period_type& /*p*/,
    123123                           const duration_type& dur_unit,
    124124                           const facet_type& facet) const
    125125    {
  • time.hpp

     
    7777    /*! Optional bool parameter will return time zone as an offset
    7878     * (ie "+07:00"). Empty string is returned for classes that do
    7979     * not use a time_zone */
    80     std::string zone_name(bool as_offset=false) const
     80    std::string zone_name(bool /*as_offset*/ = false) const
    8181    {
    8282      return time_system::zone_name(time_);
    8383    }
    8484    /*! Optional bool parameter will return time zone as an offset
    8585     * (ie "+07:00"). Empty string is returned for classes that do
    8686     * not use a time_zone */
    87     std::string zone_abbrev(bool as_offset=false) const
     87    std::string zone_abbrev(bool /*as_offset*/ = false) const
    8888    {
    8989      return time_system::zone_name(time_);
    9090    }
  • time_system_split.hpp

     
    7676
    7777    static time_rep_type get_time_rep(const date_type& day,
    7878                                      const time_duration_type& tod,
    79                                       date_time::dst_flags dst=not_dst)
     79                                      date_time::dst_flags /*dst*/ = not_dst)
    8080    {
    8181      if(day.is_special() || tod.is_special()) {
    8282        if(day.is_not_a_date() || tod.is_not_a_date_time()) {