[prev in list] [next in list] [prev in thread] [next in thread]
List: boost-bugs
Subject: [Boost-bugs] [Boost C++ Libraries] #3487: using 32bit seconds type
From: "Boost C++ Libraries" <noreply () lists ! boost ! org>
Date: 2009-09-25 17:02:04
Message-ID: 072.9cc432cf6793d08fab38acb386668a44 () lists ! boost ! org
[Download RAW message or body]
#3487: using 32bit seconds type in boost::posix_time::time_duration is leading to
year 2038 problem
-----------------------------------------------------+----------------------
Reporter: Meike Schmidt <mschmidt.trittau@…> | Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: date_time
Version: Boost 1.40.0 | Severity: Problem
Keywords: |
-----------------------------------------------------+----------------------
In the template class time_resolution_traits the dafault seconds type is
boost::int32_t. This type is also used in the posix_time::time_duration
class.
When using posix_time::from_time_t() the time_t value (normally a 64bit
type on modern systems) is casted into an boost::int32_t value. So time_t
values describing times after year 2038 will not processed correctly.
Is it possible to use boost::int64_t as default seconds type?
--
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3487>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
_______________________________________________
Boost-bugs mailing list
Boost-bugs@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic