|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74828 - trunk/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2011-10-08 20:35:18
Author: viboes
Date: 2011-10-08 20:35:17 EDT (Sat, 08 Oct 2011)
New Revision: 74828
URL: http://svn.boost.org/trac/boost/changeset/74828
Log:
Chrono: Fix missing include config.hpp
Text files modified:
trunk/boost/chrono/process_cpu_clocks.hpp | 17 +++++++++--------
trunk/boost/chrono/thread_clock.hpp | 2 ++
2 files changed, 11 insertions(+), 8 deletions(-)
Modified: trunk/boost/chrono/process_cpu_clocks.hpp
==============================================================================
--- trunk/boost/chrono/process_cpu_clocks.hpp (original)
+++ trunk/boost/chrono/process_cpu_clocks.hpp 2011-10-08 20:35:17 EDT (Sat, 08 Oct 2011)
@@ -10,6 +10,7 @@
#ifndef BOOST_CHRONO_PROCESS_CPU_CLOCKS_HPP
#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: trunk/boost/chrono/thread_clock.hpp
==============================================================================
--- trunk/boost/chrono/thread_clock.hpp (original)
+++ trunk/boost/chrono/thread_clock.hpp 2011-10-08 20:35:17 EDT (Sat, 08 Oct 2011)
@@ -7,6 +7,8 @@
// See http://www.boost.org/libs/system for documentation.
+#include <boost/chrono/config.hpp>
+
#ifndef BOOST_CHRONO_THREAD_CLOCK_HPP
#define BOOST_CHRONO_THREAD_CLOCK_HPP
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