Subject: [Boost-bugs] [Boost C++ Libraries] #4179: time_duration::operator*(int) has no versions for double and int64_t causing implicit truncating them to int32_t
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-05-03 02:47:06
#4179: time_duration::operator*(int) has no versions for double and int64_t
causing implicit truncating them to int32_t
--------------------------+-------------------------------------------------
Reporter: anonymous | Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: date_time
Version: Boost 1.42.0 | Severity: Problem
Keywords: |
--------------------------+-------------------------------------------------
time_duration::operator*(int) has no versions for double and int64_t
causing implicit truncating them to int32_t
{{{
std::cout << boost::posix_time::microseconds(1) * 1e8 << std::endl;
std::cout << boost::posix_time::microseconds(1) * 1e9 << std::endl;
std::cout << boost::posix_time::microseconds(1) * 1e10 << std::endl;
std::cout << boost::posix_time::microseconds(1) * 1e11 << std::endl;
}}}
{{{
00:01:40
00:16:40
00:23:30.065408
00:20:15.752192
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4179> 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:03 UTC