Changeset 80710


Ignore:
Timestamp:
Sep 26, 2012, 4:57:58 PM (6 years ago)
Author:
Marshall Clow
Message:

Use memset instead of default constructor (std::tm) for deficient compilers; Refs #5550

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/boost/date_time/date_facet.hpp

    r53624 r80710  
    209209      //}
    210210      //The following line of code required the date to support a to_tm function
    211       std::tm dtm = {};
     211      std::tm dtm;
     212      std::memset(&dtm, 0, sizeof(dtm));
    212213      dtm.tm_mon = m - 1;
    213214      return do_put_tm(next, a_ios, fill_char, dtm, m_month_format);
     
    220221                const day_type& day) const
    221222    {
    222       std::tm dtm = {};
     223      std::tm dtm;
     224      std::memset(&dtm, 0, sizeof(dtm));
    223225      dtm.tm_mday = day.as_number();
    224226      char_type tmp[3] = {'%','d'};
     
    236238      //}
    237239      //The following line of code required the date to support a to_tm function
    238       std::tm dtm = {};
     240      std::tm dtm;
     241      std::memset(&dtm, 0, sizeof(dtm));
    239242      dtm.tm_wday = dow;
    240243      return do_put_tm(next, a_ios, fill_char, dtm, m_weekday_format);
Note: See TracChangeset for help on using the changeset viewer.