|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74829 - branches/release/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2011-10-08 20:35:43
Author: viboes
Date: 2011-10-08 20:35:42 EDT (Sat, 08 Oct 2011)
New Revision: 74829
URL: http://svn.boost.org/trac/boost/changeset/74829
Log:
Chrono: Fix missing include config.hpp
Text files modified:
branches/release/boost/chrono/process_cpu_clocks.hpp | 17 +++++++++--------
branches/release/boost/chrono/thread_clock.hpp | 2 +-
2 files changed, 10 insertions(+), 9 deletions(-)
Modified: branches/release/boost/chrono/process_cpu_clocks.hpp
==============================================================================
--- branches/release/boost/chrono/process_cpu_clocks.hpp (original)
+++ branches/release/boost/chrono/process_cpu_clocks.hpp 2011-10-08 20:35:42 EDT (Sat, 08 Oct 2011)
@@ -11,6 +11,7 @@
#define BOOST_CHRONO_PROCESS_CPU_CLOCKS_HPP
+#include <boost/chrono/config.hpp>
#if defined(BOOST_CHRONO_HAS_PROCESS_CLOCKS)
@@ -177,13 +178,13 @@
}
template <class CharT, class Traits>
- void print(std::basic_ostream<CharT, Traits>& os) const
+ void print(std::basic_ostream<CharT, Traits>& os) const
{
os << "{"<< real <<";"<< user <<";"<< system << "}";
}
template <class CharT, class Traits>
- void read(std::basic_istream<CharT, Traits>& is) const
+ void read(std::basic_istream<CharT, Traits>& is) const
{
typedef std::istreambuf_iterator<CharT, Traits> in_iterator;
in_iterator i(is);
@@ -313,8 +314,8 @@
};
template <class CharT, class Traits, typename Rep>
- std::basic_ostream<CharT, Traits>&
- operator<<(std::basic_ostream<CharT, Traits>& os,
+ std::basic_ostream<CharT, Traits>&
+ operator<<(std::basic_ostream<CharT, Traits>& os,
process_times<Rep> const& rhs)
{
rhs.print(os);
@@ -322,8 +323,8 @@
}
template <class CharT, class Traits, typename Rep>
- std::basic_istream<CharT, Traits>&
- operator>>(std::basic_istream<CharT, Traits>& is,
+ std::basic_istream<CharT, Traits>&
+ operator>>(std::basic_istream<CharT, Traits>& is,
process_times<Rep> const& rhs)
{
rhs.read(is);
@@ -465,8 +466,8 @@
(std::numeric_limits<Rep>::max)());
}
static Res lowest() throw()
- {
- return (min)();
+ {
+ return (min)();
}
static const int digits = std::numeric_limits<Rep>::digits+
std::numeric_limits<Rep>::digits+
Modified: branches/release/boost/chrono/thread_clock.hpp
==============================================================================
--- branches/release/boost/chrono/thread_clock.hpp (original)
+++ branches/release/boost/chrono/thread_clock.hpp 2011-10-08 20:35:42 EDT (Sat, 08 Oct 2011)
@@ -10,9 +10,9 @@
#ifndef BOOST_CHRONO_THREAD_CLOCK_HPP
#define BOOST_CHRONO_THREAD_CLOCK_HPP
+#include <boost/chrono/config.hpp>
#if defined(BOOST_CHRONO_HAS_THREAD_CLOCK)
-#include <boost/chrono/config.hpp>
#include <boost/chrono/duration.hpp>
#include <boost/chrono/time_point.hpp>
#if !defined BOOST_CHRONO_DONT_PROVIDE_HYBRID_ERROR_HANDLING
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