Re: [Boost-bugs] [Boost C++ Libraries] #7687: [date_time] implicit conversion loses integer precision

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7687: [date_time] implicit conversion loses integer precision
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-11 01:20:28


#7687: [date_time] implicit conversion loses integer precision
--------------------------------+-------------------------------------------
  Reporter: crueegg@… | Owner: az_sw_dude
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: date_time
   Version: Boost 1.52.0 | Severity: Cosmetic
Resolution: | Keywords:
--------------------------------+-------------------------------------------

Comment (by matt@…):

 I just wanted to clarify the cause of the bug here:

 posix_time exposes classes (hours, minutes, seconds) that take a "long" as
 their constructor. These parameters are passed through to the internal
 time_resolution_traits and stored in a "v_type" which is int32_t in the
 default template parameter construction.

 On LP64 platforms (64-bit except Windows), long and int32_t are not the
 same size. The time_resolution_traits default type for "v_type" should
 probably be upgraded to use a "long" since this could be done without
 changing the external interface to posix_time.

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