[Boost-bugs] [Boost C++ Libraries] #12609: time_duration::total_seconds doesn't return long for LP64 model

Subject: [Boost-bugs] [Boost C++ Libraries] #12609: time_duration::total_seconds doesn't return long for LP64 model
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-11-15 13:13:05


#12609: time_duration::total_seconds doesn't return long for LP64 model
------------------------------+------------------------
 Reporter: anonymous | Owner: az_sw_dude
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: date_time
  Version: Boost 1.62.0 | Severity: Problem
 Keywords: |
------------------------------+------------------------
 The documentation says that '''time_duration::total_seconds()''' returns
 '''long'''
 (http://www.boost.org/doc/libs/1_62_0/doc/html/date_time/posix_time.html).

 But for LP64 models (e.g. Linux, 64bit) it returns signed 32bit integer,
 not '''long''' (signed 64bit integer).

 It looks like '''time_resolution_traits::v_type'''
 (boost/date_time/time_resolution_traits.hpp) should be changed. At the
 moment it uses '''int32_t''' which is not correct for LP64 model because
 the documentation says it must be '''long'''.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12609>
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:20 UTC