Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65990 - in sandbox/chrono/boost/chrono: . detail detail/inlined detail/inlined/posix detail/inlined/win
From: vicente.botet_at_[hidden]
Date: 2010-10-15 14:07:03


Author: viboes
Date: 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
New Revision: 65990
URL: http://svn.boost.org/trac/boost/changeset/65990

Log:
Chrono:
* Add guards for header files
* More on making configurable header-only library
* replace windows.h by detail/win/time.h
Text files modified:
   sandbox/chrono/boost/chrono/detail/inlined/chrono.hpp | 7 ++++---
   sandbox/chrono/boost/chrono/detail/inlined/posix/chrono.hpp | 1 -
   sandbox/chrono/boost/chrono/detail/inlined/posix/process_clock.hpp | 4 ----
   sandbox/chrono/boost/chrono/detail/inlined/posix/thread_clock.hpp | 4 ----
   sandbox/chrono/boost/chrono/detail/inlined/process_clock.hpp | 7 ++++---
   sandbox/chrono/boost/chrono/detail/inlined/process_cpu_clocks.hpp | 6 +++---
   sandbox/chrono/boost/chrono/detail/inlined/run_timer.hpp | 19 +++++++++++--------
   sandbox/chrono/boost/chrono/detail/inlined/run_timer_static.hpp | 7 ++++---
   sandbox/chrono/boost/chrono/detail/inlined/thread_clock.hpp | 9 +++------
   sandbox/chrono/boost/chrono/detail/inlined/win/chrono.hpp | 37 +++++++++++++++++++++----------------
   sandbox/chrono/boost/chrono/detail/inlined/win/process_clock.hpp | 24 ++++++++++++------------
   sandbox/chrono/boost/chrono/detail/inlined/win/thread_clock.hpp | 27 ++++++++++++++-------------
   sandbox/chrono/boost/chrono/detail/scan_keyword.hpp | 1 +
   sandbox/chrono/boost/chrono/process_times.hpp | 8 +++++---
   14 files changed, 82 insertions(+), 79 deletions(-)

Modified: sandbox/chrono/boost/chrono/detail/inlined/chrono.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/inlined/chrono.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/inlined/chrono.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -6,9 +6,8 @@
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
 
-// define BOOST_CHRONO_SOURCE so that <boost/filesystem/config.hpp> knows
-// the library is being built (possibly exporting rather than importing code)
-//#define BOOST_CHRONO_SOURCE
+#ifndef BOOST_CHRONO_DETAIL_INLINED_CHRONO_HPP
+#define BOOST_CHRONO_DETAIL_INLINED_CHRONO_HPP
 
 #include <boost/version.hpp>
 #include <boost/chrono/chrono.hpp>
@@ -40,3 +39,5 @@
 #include <boost/chrono/detail/inlined/posix/chrono.hpp>
 
 #endif // POSIX
+
+#endif

Modified: sandbox/chrono/boost/chrono/detail/inlined/posix/chrono.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/inlined/posix/chrono.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/inlined/posix/chrono.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -10,7 +10,6 @@
 // POSIX //
 //----------------------------------------------------------------------------//
 
-
 #include <time.h> // for clock_gettime
 
 namespace boost

Modified: sandbox/chrono/boost/chrono/detail/inlined/posix/process_clock.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/inlined/posix/process_clock.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/inlined/posix/process_clock.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -10,10 +10,6 @@
 
 //--------------------------------------------------------------------------------------//
 
-// define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
-// the library is being built (possibly exporting rather than importing code)
-//#define BOOST_CHRONO_SOURCE
-
 #include <boost/chrono/config.hpp>
 #include <boost/chrono/process_times.hpp>
 #include <cassert>

Modified: sandbox/chrono/boost/chrono/detail/inlined/posix/thread_clock.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/inlined/posix/thread_clock.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/inlined/posix/thread_clock.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -10,10 +10,6 @@
 
 //--------------------------------------------------------------------------------------//
 
-// define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
-// the library is being built (possibly exporting rather than importing code)
-//#define BOOST_CHRONO_SOURCE
-
 #include <boost/chrono/config.hpp>
 #include <boost/chrono/thread_clock.hpp>
 #include <cassert>

Modified: sandbox/chrono/boost/chrono/detail/inlined/process_clock.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/inlined/process_clock.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/inlined/process_clock.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -9,10 +9,9 @@
 // See http://www.boost.org/libs/chrono for documentation.
 
 //--------------------------------------------------------------------------------------//
+#ifndef BOOST_CHRONO_DETAIL_INLINED_PROCESS_CLOCK_HPP
+#define BOOST_CHRONO_DETAIL_INLINED_PROCESS_CLOCK_HPP
 
-// define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
-// the library is being built (possibly exporting rather than importing code)
-//#define BOOST_CHRONO_SOURCE
 
 #include <boost/chrono/config.hpp>
 #include <boost/version.hpp>
@@ -49,3 +48,5 @@
     }
     
 }}
+
+#endif

Modified: sandbox/chrono/boost/chrono/detail/inlined/process_cpu_clocks.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/inlined/process_cpu_clocks.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/inlined/process_cpu_clocks.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -8,10 +8,9 @@
 // See http://www.boost.org/libs/chrono for documentation.
 
 //--------------------------------------------------------------------------------------//
+#ifndef BOOST_CHRONO_DETAIL_INLINED_PROCESS_CPU_CLOCKS_HPP
+#define BOOST_CHRONO_DETAIL_INLINED_PROCESS_CPU_CLOCKS_HPP
 
-// define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
-// the library is being built (possibly exporting rather than importing code)
-//#define BOOST_CHRONO_SOURCE
 
 #include <boost/chrono/config.hpp>
 #include <boost/version.hpp>
@@ -50,3 +49,4 @@
 } // namespace boost
 
 
+#endif
\ No newline at end of file

Modified: sandbox/chrono/boost/chrono/detail/inlined/run_timer.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/inlined/run_timer.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/inlined/run_timer.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -9,10 +9,8 @@
 // See http://www.boost.org/libs/chrono for documentation.
 
 //--------------------------------------------------------------------------------------//
-
-// define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
-// the library is being built (possibly exporting rather than importing code)
-//#define BOOST_CHRONO_SOURCE
+#ifndef BOOST_CHRONO_DETAIL_INLINED_RUN_TIMER_HPP
+#define BOOST_CHRONO_DETAIL_INLINED_RUN_TIMER_HPP
 
 #include <boost/version.hpp>
 #include <boost/chrono/process_times.hpp>
@@ -28,9 +26,12 @@
 {
 namespace chrono_detail
 {
- const char * default_format =
- "\nreal %rs, cpu %cs (%p%), user %us, system %ss\n";
+ BOOST_CHRONO_INLINE
+ const char * default_format() {
+ return "\nreal %rs, cpu %cs (%p%), user %us, system %ss\n";
+ }
 
+ BOOST_CHRONO_INLINE
   void show_time( const boost::chrono::process_times & times,
                   const char * format, int places, std::ostream & os )
   // NOTE WELL: Will truncate least-significant digits to LDBL_DIG, which may
@@ -131,7 +132,7 @@
     void run_timer::report( system::error_code & ec )
     {
       m_reported = true;
- if ( m_format.empty() ) m_format = chrono_detail::default_format;
+ if ( m_format.empty() ) m_format = chrono_detail::default_format();
 
       process_times times;
       elapsed( times, ec );
@@ -166,7 +167,7 @@
 
     void run_timer::test_report( duration real_, duration user_, duration system_ )
     {
- if ( m_format.empty() ) m_format = chrono_detail::default_format;
+ if ( m_format.empty() ) m_format = chrono_detail::default_format();
 
       process_times times;
       times.real = real_;
@@ -178,3 +179,5 @@
 
   } // namespace chrono
 } // namespace boost
+
+#endif

Modified: sandbox/chrono/boost/chrono/detail/inlined/run_timer_static.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/inlined/run_timer_static.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/inlined/run_timer_static.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -16,10 +16,9 @@
 // not actually used.
 
 //--------------------------------------------------------------------------------------//
+#ifndef BOOST_CHRONO_DETAIL_INLINED_RUN_TIMER_STATIC_HPP
+#define BOOST_CHRONO_DETAIL_INLINED_RUN_TIMER_STATIC_HPP
 
-// define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
-// the library is being built (possibly exporting rather than importing code)
-//#define BOOST_CHRONO_SOURCE
 
 #include <boost/version.hpp>
 #include <boost/chrono/process_times.hpp>
@@ -34,3 +33,5 @@
 
   } // namespace chrono
 } // namespace boost
+
+#endif

Modified: sandbox/chrono/boost/chrono/detail/inlined/thread_clock.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/inlined/thread_clock.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/inlined/thread_clock.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -8,11 +8,8 @@
 // See http://www.boost.org/libs/chrono for documentation.
 
 //--------------------------------------------------------------------------------------//
-
-
-// define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
-// the library is being built (possibly exporting rather than importing code)
-//#define BOOST_CHRONO_SOURCE
+#ifndef BOOST_CHRONO_DETAIL_INLINED_THREAD_CLOCK_HPP
+#define BOOST_CHRONO_DETAIL_INLINED_THREAD_CLOCK_HPP
 
 #include <boost/chrono/config.hpp>
 #include <boost/version.hpp>
@@ -42,5 +39,5 @@
 
 #endif // POSIX
 
-
+#endif
 #endif

Modified: sandbox/chrono/boost/chrono/detail/inlined/win/chrono.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/inlined/win/chrono.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/inlined/win/chrono.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -1,6 +1,7 @@
 // win/chrono.cpp --------------------------------------------------------------//
 
 // Copyright Beman Dawes 2008
+// Copyright 2009-2010 Vicente J. Botet Escriba
 
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
@@ -8,22 +9,22 @@
 //----------------------------------------------------------------------------//
 // Windows //
 //----------------------------------------------------------------------------//
+#ifndef BOOST_CHRONO_DETAIL_INLINED_WIN_CHRONO_HPP
+#define BOOST_CHRONO_DETAIL_INLINED_WIN_CHRONO_HPP
 
-#include <windows.h>
-
+#include <boost/detail/win/time.hpp>
 
 namespace boost
 {
 namespace chrono
 {
-
 namespace chrono_detail
 {
   
- double get_nanosecs_per_tic()
+ BOOST_CHRONO_INLINE double get_nanosecs_per_tic()
   {
- LARGE_INTEGER freq;
- if ( !QueryPerformanceFrequency( &freq ) )
+ boost::detail::win32::LARGE_INTEGER_ freq;
+ if ( !boost::detail::win32::QueryPerformanceFrequency( &freq ) )
       return 0.0L;
     return double(1000000000.0L / freq.QuadPart);
   }
@@ -34,10 +35,13 @@
   {
         static double nanosecs_per_tic = chrono_detail::get_nanosecs_per_tic();
 
- LARGE_INTEGER pcount;
- if ( (nanosecs_per_tic <= 0.0L) || (!QueryPerformanceCounter( &pcount )) )
+ boost::detail::win32::LARGE_INTEGER_ pcount;
+ if ( (nanosecs_per_tic <= 0.0L) || (!boost::detail::win32::QueryPerformanceCounter( &pcount )) )
     {
- DWORD cause = (nanosecs_per_tic <= 0.0L ? ERROR_NOT_SUPPORTED : ::GetLastError());
+ boost::detail::win32::DWORD_ cause =
+ (nanosecs_per_tic <= 0.0L
+ ? boost::detail::win32::ERROR_NOT_SUPPORTED_
+ : boost::detail::win32::GetLastError());
       boost::throw_exception(
 #if ((BOOST_VERSION / 100000) < 2) && ((BOOST_VERSION / 100 % 1000) < 44)
         system::system_error( cause, system::system_category, "chrono::monotonic_clock" ));
@@ -55,10 +59,10 @@
   {
     static double nanosecs_per_tic = chrono_detail::get_nanosecs_per_tic();
 
- LARGE_INTEGER pcount;
- if ( (nanosecs_per_tic <= 0.0L) || (!QueryPerformanceCounter( &pcount )) )
+ boost::detail::win32::LARGE_INTEGER_ pcount;
+ if ( (nanosecs_per_tic <= 0.0L) || (!boost::detail::win32::QueryPerformanceCounter( &pcount )) )
     {
- DWORD cause = ((nanosecs_per_tic <= 0.0L) ? ERROR_NOT_SUPPORTED : ::GetLastError());
+ boost::detail::win32::DWORD_ cause = ((nanosecs_per_tic <= 0.0L) ? boost::detail::win32::ERROR_NOT_SUPPORTED_ : boost::detail::win32::GetLastError());
 #if ((BOOST_VERSION / 100000) < 2) && ((BOOST_VERSION / 100 % 1000) < 44)
       ec.assign( cause, system::system_category );
 #else
@@ -75,8 +79,8 @@
   BOOST_CHRONO_INLINE
   system_clock::time_point system_clock::now()
   {
- FILETIME ft;
- ::GetSystemTimeAsFileTime( &ft ); // never fails
+ boost::detail::win32::FILETIME_ ft;
+ boost::detail::win32::GetSystemTimeAsFileTime( &ft ); // never fails
     return system_clock::time_point(system_clock::duration(
       (static_cast<__int64>( ft.dwHighDateTime ) << 32) | ft.dwLowDateTime));
   }
@@ -84,8 +88,8 @@
   BOOST_CHRONO_INLINE
   system_clock::time_point system_clock::now( system::error_code & ec )
   {
- FILETIME ft;
- ::GetSystemTimeAsFileTime( &ft ); // never fails
+ boost::detail::win32::FILETIME_ ft;
+ boost::detail::win32::GetSystemTimeAsFileTime( &ft ); // never fails
     ec.clear();
     return time_point(duration(
       (static_cast<__int64>( ft.dwHighDateTime ) << 32) | ft.dwLowDateTime));
@@ -124,3 +128,4 @@
 } // namespace chrono
 } // namespace boost
 
+#endif

Modified: sandbox/chrono/boost/chrono/detail/inlined/win/process_clock.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/inlined/win/process_clock.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/inlined/win/process_clock.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -1,7 +1,7 @@
 // boost process_timer.cpp -----------------------------------------------------------//
 
 // Copyright Beman Dawes 1994, 2006, 2008
-// Copyright 2009 Vicente J. Botet Escriba
+// Copyright 2009-2010 Vicente J. Botet Escriba
 
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
@@ -9,33 +9,31 @@
 // See http://www.boost.org/libs/chrono for documentation.
 
 //--------------------------------------------------------------------------------------//
-
-// define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
-// the library is being built (possibly exporting rather than importing code)
-//#define BOOST_CHRONO_SOURCE
+#ifndef BOOST_CHRONO_DETAIL_INLINED_WIN_PROCESS_CLOCK_HPP
+#define BOOST_CHRONO_DETAIL_INLINED_WIN_PROCESS_CLOCK_HPP
 
 #include <boost/chrono/config.hpp>
-#include <boost/chrono/process_times.hpp>
 #include <boost/chrono/system_clocks.hpp>
+#include <boost/chrono/process_times.hpp>
 #include <cassert>
 
-# include <windows.h>
+#include <boost/detail/win/time.hpp>
 
 namespace boost
 {
   namespace chrono
   {
-
     
     void process_clock::now( process_times & times_, system::error_code & ec )
     {
 
       // note that Windows uses 100 nanosecond ticks for FILETIME
- FILETIME creation, exit, user_time, system_time;
+ boost::detail::win32::FILETIME_ creation, exit, user_time, system_time;
 
       times_.real = duration( monotonic_clock::now().time_since_epoch().count() );
 
- if ( ::GetProcessTimes( ::GetCurrentProcess(), &creation, &exit,
+ if ( boost::detail::win32::GetProcessTimes(
+ boost::detail::win32::GetCurrentProcess(), &creation, &exit,
              &system_time, &user_time ) )
       {
         ec.clear();
@@ -51,9 +49,9 @@
       {
         //~ assert( 0 && "error handling not implemented yet" );
 #if ((BOOST_VERSION / 100000) < 2) && ((BOOST_VERSION / 100 % 1000) < 44)
- ec.assign( ::GetLastError(), system::system_category );
+ ec.assign( boost::detail::win32::GetLastError(), system::system_category );
 #else
- ec.assign( ::GetLastError(), system::system_category() );
+ ec.assign( boost::detail::win32::GetLastError(), system::system_category() );
 #endif
         times_.real = times_.system = times_.user = nanoseconds(-1);
       }
@@ -61,3 +59,5 @@
     }
   } // namespace chrono
 } // namespace boost
+
+#endif

Modified: sandbox/chrono/boost/chrono/detail/inlined/win/thread_clock.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/inlined/win/thread_clock.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/inlined/win/thread_clock.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -8,16 +8,14 @@
 // See http://www.boost.org/libs/chrono for documentation.
 
 //--------------------------------------------------------------------------------------//
-
-// define BOOST_CHRONO_SOURCE so that <boost/chrono/config.hpp> knows
-// the library is being built (possibly exporting rather than importing code)
-//#define BOOST_CHRONO_SOURCE
+#ifndef BOOST_CHRONO_DETAIL_INLINED_WIN_THREAD_CLOCK_HPP
+#define BOOST_CHRONO_DETAIL_INLINED_WIN_THREAD_CLOCK_HPP
 
 #include <boost/chrono/config.hpp>
 #include <boost/chrono/thread_clock.hpp>
 #include <cassert>
 
-# include <windows.h>
+#include <boost/detail/win/time.hpp>
 
 namespace boost
 {
@@ -28,9 +26,10 @@
     {
 
       // note that Windows uses 100 nanosecond ticks for FILETIME
- FILETIME creation, exit, user_time, system_time;
+ boost::detail::win32::FILETIME_ creation, exit, user_time, system_time;
 
- if ( ::GetThreadTimes( ::GetCurrentThread (), &creation, &exit,
+ if ( boost::detail::win32::GetThreadTimes(
+ boost::detail::win32::GetCurrentThread (), &creation, &exit,
              &system_time, &user_time ) )
       {
         duration user = duration(
@@ -49,9 +48,9 @@
       {
         //~ assert( 0 && "error handling not implemented yet" );
 #if ((BOOST_VERSION / 100000) < 2) && ((BOOST_VERSION / 100 % 1000) < 44)
- ec.assign( ::GetLastError(), system::system_category );
+ ec.assign( boost::detail::win32::GetLastError(), system::system_category );
 #else
- ec.assign( ::GetLastError(), system::system_category() );
+ ec.assign( boost::detail::win32::GetLastError(), system::system_category() );
 #endif
         return thread_clock::time_point(duration(0));
       }
@@ -62,9 +61,9 @@
     {
 
       // note that Windows uses 100 nanosecond ticks for FILETIME
- FILETIME creation, exit, user_time, system_time;
+ boost::detail::win32::FILETIME_ creation, exit, user_time, system_time;
 
- if ( ::GetThreadTimes( ::GetCurrentThread (), &creation, &exit,
+ if ( boost::detail::win32::GetThreadTimes( boost::detail::win32::GetCurrentThread (), &creation, &exit,
              &system_time, &user_time ) )
       {
         duration user = duration(
@@ -82,9 +81,9 @@
       {
         boost::throw_exception(
 #if ((BOOST_VERSION / 100000) < 2) && ((BOOST_VERSION / 100 % 1000) < 44)
- system::system_error( ::GetLastError(), system::system_category, "chrono::monotonic_clock" ));
+ system::system_error( boost::detail::win32::GetLastError(), system::system_category, "chrono::monotonic_clock" ));
 #else
- system::system_error( ::GetLastError(), system::system_category(), "chrono::monotonic_clock" ));
+ system::system_error( boost::detail::win32::GetLastError(), system::system_category(), "chrono::monotonic_clock" ));
 #endif
       }
 
@@ -94,3 +93,5 @@
     
   } // namespace chrono
 } // namespace boost
+
+#endif

Modified: sandbox/chrono/boost/chrono/detail/scan_keyword.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/detail/scan_keyword.hpp (original)
+++ sandbox/chrono/boost/chrono/detail/scan_keyword.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -1,5 +1,6 @@
 // scan_keyword.hpp --------------------------------------------------------------//
 
+// (C) Copyright Howard Hinnant
 // Copyright 2010 Vicente J. Botet Escriba
 
 // Distributed under the Boost Software License, Version 1.0.

Modified: sandbox/chrono/boost/chrono/process_times.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/process_times.hpp (original)
+++ sandbox/chrono/boost/chrono/process_times.hpp 2010-10-15 14:07:00 EDT (Fri, 15 Oct 2010)
@@ -17,6 +17,7 @@
 #include <boost/cstdint.hpp>
 #include <string>
 #include <ostream>
+//#include <iostream>
 
 #ifndef BOOST_CHRONO_INLINED
 #include <boost/config/abi_prefix.hpp> // must be the last #include
@@ -162,7 +163,7 @@
         if ( !reported() ) report( ec );
       }
 
- void start( system::error_code & ec = system::throws )
+ BOOST_CHRONO_INLINE void start( system::error_code & ec = system::throws )
       {
         m_reported = false;
         process_timer::start( ec );
@@ -172,9 +173,9 @@
 
       BOOST_CHRONO_INLINE void test_report( duration real_, duration user_, duration system_ );
 
- bool reported() const { return m_reported; }
+ BOOST_CHRONO_INLINE bool reported() const { return m_reported; }
 
- static int default_places() { return m_default_places; }
+ BOOST_CHRONO_INLINE static int default_places() { return m_default_places; }
 
     private:
       int m_places;
@@ -191,6 +192,7 @@
       bool m_reported;
 
       BOOST_CHRONO_INLINE static std::ostream & m_cout();
+ //{return std::cout;}
       static const int m_default_places = 3;
       run_timer(const run_timer&); // = delete;
       run_timer& operator=(const run_timer&); // = delete;


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