Re: [Boost-bugs] [Boost C++ Libraries] #3713: no straightforward way to convert fractional number of seconds to time duration

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3713: no straightforward way to convert fractional number of seconds to time duration
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-08 20:48:58


#3713: no straightforward way to convert fractional number of seconds to time
duration
---------------------------------------------------+------------------------
  Reporter: Paul Pogonyshev <pogonyshev@…> | Owner: az_sw_dude
      Type: Feature Requests | Status: new
 Milestone: Boost 1.42.0 | Component: date_time
   Version: Boost 1.40.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------------+------------------------

Comment (by Paul Pogonyshev):

 As far as I see from documentation, using seconds() will round the number
 to integer first, which is completely inappropriate for my usecase.

 It would have been fine if seconds() accepted double parameter in addition
 to long making the conversion explicit rather than implicit.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3713#comment:2>
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:05 UTC