Re: [Boost-bugs] [Boost C++ Libraries] #7868: chrono_io parses time incorrectly (1.53 and 1.52)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7868: chrono_io parses time incorrectly (1.53 and 1.52)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-18 20:51:00


#7868: chrono_io parses time incorrectly (1.53 and 1.52)
--------------------------------------------------+-------------------------
  Reporter: Johan Lundberg <lundberj@…> | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: chrono
   Version: Boost 1.52.0 | Severity: Regression
Resolution: | Keywords:
--------------------------------------------------+-------------------------
Changes (by viboes):

  * status: new => assigned

Comment:

 Hi,

 I think that I have found the fix. Please could you try adding in
 boost/chrono/io/time_point_io.hpp the following missed initialization.


 {{{
             tm.tm_sec=0;
 }}}


 before


 {{{
 #if defined BOOST_CHRONO_USES_INTERNAL_TIME_GET
             const detail::time_get<CharT>& dtg(tg);
             dtg.get(is, 0, is, err, &tm, pb, pe);
 #else
             tg.get(is, 0, is, err, &tm, pb, pe);
 #endif

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7868#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC