|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86425 - in trunk: boost/chrono/io libs/chrono/doc libs/chrono/test
From: vicente.botet_at_[hidden]
Date: 2013-10-25 03:40:23
Author: viboes
Date: 2013-10-25 03:40:23 EDT (Fri, 25 Oct 2013)
New Revision: 86425
URL: http://svn.boost.org/trac/boost/changeset/86425
Log:
Chrono: Added more missing include files and setting internal gmtime/timegm for IBM compiler. Update history.
Text files modified:
trunk/boost/chrono/io/time_point_io.hpp | 15 +++++++++------
trunk/libs/chrono/doc/chrono.qbk | 2 ++
trunk/libs/chrono/test/test_7868.cpp | 1 +
3 files changed, 12 insertions(+), 6 deletions(-)
Modified: trunk/boost/chrono/io/time_point_io.hpp
==============================================================================
--- trunk/boost/chrono/io/time_point_io.hpp Fri Oct 25 00:43:04 2013 (r86424)
+++ trunk/boost/chrono/io/time_point_io.hpp 2013-10-25 03:40:23 EDT (Fri, 25 Oct 2013) (r86425)
@@ -32,17 +32,20 @@
#include <boost/detail/no_exceptions_support.hpp>
#include <cstring>
#include <locale>
-#include <string.h>
+#include <ctime>
#define BOOST_CHRONO_INTERNAL_TIMEGM \
- ( defined BOOST_WINDOWS && ! defined(__CYGWIN__) ) || \
- ( (defined(sun) || defined(__sun)) && defined __GNUC__)
-
-#define BOOST_CHRONO_INTERNAL_GMTIME defined BOOST_WINDOWS && ! defined(__CYGWIN__)
+ ( defined BOOST_WINDOWS && ! defined(__CYGWIN__) ) \
+ || ( (defined(sun) || defined(__sun)) && defined __GNUC__) \
+ || (defined __IBMCPP__)
+
+#define BOOST_CHRONO_INTERNAL_GMTIME \
+ (defined BOOST_WINDOWS && ! defined(__CYGWIN__)) \
+ || ( (defined(sun) || defined(__sun)) && defined __GNUC__) \
+ || (defined __IBMCPP__)
#define BOOST_CHRONO_USES_INTERNAL_TIME_GET
-
namespace boost
{
namespace chrono
Modified: trunk/libs/chrono/doc/chrono.qbk
==============================================================================
--- trunk/libs/chrono/doc/chrono.qbk Fri Oct 25 00:43:04 2013 (r86424)
+++ trunk/libs/chrono/doc/chrono.qbk 2013-10-25 03:40:23 EDT (Fri, 25 Oct 2013) (r86425)
@@ -7371,6 +7371,8 @@
* [@http://svn.boost.org/trac/boost/ticket/7868 #7868] chrono_io parses time incorrectly (1.53 and 1.52)
* [@http://svn.boost.org/trac/boost/ticket/9028 #9028] Typo in boost/chrono/stopwatches/formatters/base_formatter.hpp
* [@http://svn.boost.org/trac/boost/ticket/9147 #9147] uninitialized std::tm
+* [@http://svn.boost.org/trac/boost/ticket/9274 #9274] lost of precission on system_clock input.
+* [@http://svn.boost.org/trac/boost/ticket/9276 #9276] output from a system_clock::time_point get a time_point that is one day later than expected.
[endsect] [/section [*Version 2.0.3] ]
Modified: trunk/libs/chrono/test/test_7868.cpp
==============================================================================
--- trunk/libs/chrono/test/test_7868.cpp Fri Oct 25 00:43:04 2013 (r86424)
+++ trunk/libs/chrono/test/test_7868.cpp 2013-10-25 03:40:23 EDT (Fri, 25 Oct 2013) (r86425)
@@ -13,6 +13,7 @@
#include <boost/chrono/round.hpp>
#include <boost/chrono/ceil.hpp>
#include <boost/detail/lightweight_test.hpp>
+#include <cstdio>
int main()
{
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk