|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53631 - branches/release/boost/date_time/posix_time
From: andrey.semashev_at_[hidden]
Date: 2009-06-04 07:52:29
Author: andysem
Date: 2009-06-04 07:52:28 EDT (Thu, 04 Jun 2009)
New Revision: 53631
URL: http://svn.boost.org/trac/boost/changeset/53631
Log:
Fixes #3094.
Text files modified:
branches/release/boost/date_time/posix_time/posix_time_config.hpp | 36 ++++++++++++++++++------------------
1 files changed, 18 insertions(+), 18 deletions(-)
Modified: branches/release/boost/date_time/posix_time/posix_time_config.hpp
==============================================================================
--- branches/release/boost/date_time/posix_time/posix_time_config.hpp (original)
+++ branches/release/boost/date_time/posix_time/posix_time_config.hpp 2009-06-04 07:52:28 EDT (Thu, 04 Jun 2009)
@@ -2,22 +2,22 @@
#define POSIX_TIME_CONFIG_HPP___
/* Copyright (c) 2002,2003,2005 CrystalClear Software, Inc.
- * Use, modification and distribution is subject to the
+ * Use, modification and distribution is subject to the
* Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
* Author: Jeff Garland, Bart Garst
* $Date$
*/
-#include "boost/date_time/time_duration.hpp"
-#include "boost/date_time/time_resolution_traits.hpp"
-#include "boost/date_time/gregorian/gregorian_types.hpp"
-#include "boost/date_time/wrapping_int.hpp"
-#include "boost/limits.hpp"
-#include "boost/date_time/compiler_config.hpp"
-#include "boost/cstdint.hpp"
-#include <boost/config/no_tr1/cmath.hpp>
#include <cstdlib> //for MCW 7.2 std::abs(long long)
+#include <boost/limits.hpp>
+#include <boost/cstdint.hpp>
+#include <boost/config/no_tr1/cmath.hpp>
+#include <boost/date_time/time_duration.hpp>
+#include <boost/date_time/time_resolution_traits.hpp>
+#include <boost/date_time/gregorian/gregorian_types.hpp>
+#include <boost/date_time/wrapping_int.hpp>
+#include <boost/date_time/compiler_config.hpp>
namespace boost {
namespace posix_time {
@@ -30,7 +30,7 @@
#define BOOST_DATE_TIME_HAS_MILLISECONDS
#define BOOST_DATE_TIME_HAS_MICROSECONDS
#define BOOST_DATE_TIME_HAS_NANOSECONDS
- typedef date_time::time_resolution_traits<boost::date_time::time_resolution_traits_adapted64_impl, boost::date_time::nano,
+ typedef date_time::time_resolution_traits<boost::date_time::time_resolution_traits_adapted64_impl, boost::date_time::nano,
1000000000, 9 > time_res_traits;
#else
// set up conditional test compilations
@@ -38,14 +38,14 @@
#define BOOST_DATE_TIME_HAS_MICROSECONDS
#undef BOOST_DATE_TIME_HAS_NANOSECONDS
typedef date_time::time_resolution_traits<
- boost::date_time::time_resolution_traits_adapted64_impl, boost::date_time::micro,
+ boost::date_time::time_resolution_traits_adapted64_impl, boost::date_time::micro,
1000000, 6 > time_res_traits;
// #undef BOOST_DATE_TIME_HAS_MILLISECONDS
// #undef BOOST_DATE_TIME_HAS_MICROSECONDS
// #undef BOOST_DATE_TIME_HAS_NANOSECONDS
-// typedef date_time::time_resolution_traits<boost::int64_t, boost::date_time::tenth,
+// typedef date_time::time_resolution_traits<boost::int64_t, boost::date_time::tenth,
// 10, 0 > time_res_traits;
#endif
@@ -82,8 +82,8 @@
//Give duration access to ticks constructor -- hide from users
friend class date_time::time_duration<time_duration, time_res_traits>;
private:
- explicit time_duration(impl_type ticks) :
- date_time::time_duration<time_duration, time_res_traits>(ticks)
+ explicit time_duration(impl_type tick_count) :
+ date_time::time_duration<time_duration, time_res_traits>(tick_count)
{}
};
@@ -134,7 +134,7 @@
}
};
- class posix_time_system_config
+ class posix_time_system_config
{
public:
typedef simple_time_rep time_rep_type;
@@ -143,7 +143,7 @@
typedef time_duration time_duration_type;
typedef time_res_traits::tick_type int_type;
typedef time_res_traits resolution_traits;
-#if (defined(BOOST_DATE_TIME_NO_MEMBER_INIT)) //help bad compilers
+#if (defined(BOOST_DATE_TIME_NO_MEMBER_INIT)) //help bad compilers
#else
BOOST_STATIC_CONSTANT(boost::int64_t, tick_per_second = 1000000000);
#endif
@@ -151,7 +151,7 @@
#else
- class millisec_posix_time_system_config
+ class millisec_posix_time_system_config
{
public:
typedef boost::int64_t time_rep_type;
@@ -162,7 +162,7 @@
typedef time_res_traits::tick_type int_type;
typedef time_res_traits::impl_type impl_type;
typedef time_res_traits resolution_traits;
-#if (defined(BOOST_DATE_TIME_NO_MEMBER_INIT)) //help bad compilers
+#if (defined(BOOST_DATE_TIME_NO_MEMBER_INIT)) //help bad compilers
#else
BOOST_STATIC_CONSTANT(boost::int64_t, tick_per_second = 1000000);
#endif
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