Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58367 - in sandbox/chrono/libs/chrono: build example src src/mac src/posix src/win test
From: vicente.botet_at_[hidden]
Date: 2009-12-13 16:44:39


Author: viboes
Date: 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
New Revision: 58367
URL: http://svn.boost.org/trac/boost/changeset/58367

Log:
Boost.Chrono: Version 0.2.6
* Use STATIC_ASSERT specific macro to solve the compile failing issue
* Trim files

Text files modified:
   sandbox/chrono/libs/chrono/build/Jamfile.v2 | 12 ++++++++
   sandbox/chrono/libs/chrono/example/await_keystroke.cpp | 2
   sandbox/chrono/libs/chrono/example/cycle_count.cpp | 4 +-
   sandbox/chrono/libs/chrono/example/i_dont_like_the_default_duration_behavior.cpp | 4 +-
   sandbox/chrono/libs/chrono/example/min_time_point.cpp | 4 +-
   sandbox/chrono/libs/chrono/example/runtime_resolution.cpp | 16 +++++-----
   sandbox/chrono/libs/chrono/example/saturating.cpp | 4 +-
   sandbox/chrono/libs/chrono/example/simulated_thread_interface_demo.cpp | 4 +-
   sandbox/chrono/libs/chrono/example/time2_demo.cpp | 10 +++---
   sandbox/chrono/libs/chrono/example/timeval_demo.cpp | 12 ++++----
   sandbox/chrono/libs/chrono/example/xtime.cpp | 4 +-
   sandbox/chrono/libs/chrono/src/chrono.cpp | 2
   sandbox/chrono/libs/chrono/src/mac/chrono.cpp | 8 ++--
   sandbox/chrono/libs/chrono/src/mac/process_clock.cpp | 2
   sandbox/chrono/libs/chrono/src/posix/process_clock.cpp | 56 +++++++++++++++++----------------------
   sandbox/chrono/libs/chrono/src/process_clock.cpp | 2
   sandbox/chrono/libs/chrono/src/run_timer.cpp | 8 ++--
   sandbox/chrono/libs/chrono/src/run_timer_static.cpp | 2
   sandbox/chrono/libs/chrono/src/win/process_clock.cpp | 2
   sandbox/chrono/libs/chrono/test/Jamfile.v2 | 2
   20 files changed, 83 insertions(+), 77 deletions(-)

Modified: sandbox/chrono/libs/chrono/build/Jamfile.v2
==============================================================================
--- sandbox/chrono/libs/chrono/build/Jamfile.v2 (original)
+++ sandbox/chrono/libs/chrono/build/Jamfile.v2 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -23,8 +23,20 @@
         #<include>$(BOOST_ROOT)
         # uncomment the line above if you build outside the Boost release
         #<include>../../..
+ <define>BOOST_RATIO_USES_STATIC_ASSERT
+ <define>BOOST_CHRONO_USES_STATIC_ASSERT
+ #<define>BOOST_RATIO_USES_MPL_ASSERT
+ #<define>BOOST_CHRONO_USES_MPL_ASSERT
+ #<define>BOOST_RATIO_USES_ARRAY_ASSERT
+ #<define>BOOST_CHRONO_USES_ARRAY_ASSERT
         #<toolset>gcc:<linkflags>--enable-auto-import
     : usage-requirements # pass these requirement to dependents (i.e. users)
+ <define>BOOST_RATIO_USES_STATIC_ASSERT
+ <define>BOOST_CHRONO_USES_STATIC_ASSERT
+ #<define>BOOST_RATIO_USES_MPL_ASSERT
+ #<define>BOOST_CHRONO_USES_MPL_ASSERT
+ #<define>BOOST_RATIO_USES_ARRAY_ASSERT
+ #<define>BOOST_CHRONO_USES_ARRAY_ASSERT
         <link>shared:<define>BOOST_CHRONO_DYN_LINK=1
         #<link>static:<define>BOOST_CHRONO_STATIC_LINK=1
     ;

Modified: sandbox/chrono/libs/chrono/example/await_keystroke.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/await_keystroke.cpp (original)
+++ sandbox/chrono/libs/chrono/example/await_keystroke.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -65,7 +65,7 @@
   std::cout << "high_resolution_clock latency--: " << (d9 - d8).count() << std::endl;
 
   std::time_t now = system_clock::to_time_t(system_clock::now());
-
+
   std::cout << "\nsystem_clock::now() reports UTC is "
     << std::asctime(std::gmtime(&now)) << "\n";
 

Modified: sandbox/chrono/libs/chrono/example/cycle_count.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/cycle_count.cpp (original)
+++ sandbox/chrono/libs/chrono/example/cycle_count.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -11,8 +11,8 @@
 This code was extracted by Vicente J. Botet Escriba from Beman Dawes time2_demo.cpp which
 was derived by Beman Dawes from Howard Hinnant's time2_demo prototype.
 Many thanks to Howard for making his code available under the Boost license.
-The original code was modified to conform to Boost conventions and to section
-20.9 Time utilities [time] of the C++ committee's working paper N2798.
+The original code was modified to conform to Boost conventions and to section
+20.9 Time utilities [time] of the C++ committee's working paper N2798.
 See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf.
 
 time2_demo contained this comment:

Modified: sandbox/chrono/libs/chrono/example/i_dont_like_the_default_duration_behavior.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/i_dont_like_the_default_duration_behavior.cpp (original)
+++ sandbox/chrono/libs/chrono/example/i_dont_like_the_default_duration_behavior.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -11,8 +11,8 @@
 This code was extracted by Vicente J. Botet Escriba from Beman Dawes time2_demo.cpp which
 was derived by Beman Dawes from Howard Hinnant's time2_demo prototype.
 Many thanks to Howard for making his code available under the Boost license.
-The original code was modified to conform to Boost conventions and to section
-20.9 Time utilities [time] of the C++ committee's working paper N2798.
+The original code was modified to conform to Boost conventions and to section
+20.9 Time utilities [time] of the C++ committee's working paper N2798.
 See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf.
 
 time2_demo contained this comment:

Modified: sandbox/chrono/libs/chrono/example/min_time_point.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/min_time_point.cpp (original)
+++ sandbox/chrono/libs/chrono/example/min_time_point.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -11,8 +11,8 @@
 This code was extracted by Vicente J. Botet Escriba from Beman Dawes time2_demo.cpp which
 was derived by Beman Dawes from Howard Hinnant's time2_demo prototype.
 Many thanks to Howard for making his code available under the Boost license.
-The original code was modified to conform to Boost conventions and to section
-20.9 Time utilities [time] of the C++ committee's working paper N2798.
+The original code was modified to conform to Boost conventions and to section
+20.9 Time utilities [time] of the C++ committee's working paper N2798.
 See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf.
 
 time2_demo contained this comment:

Modified: sandbox/chrono/libs/chrono/example/runtime_resolution.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/runtime_resolution.cpp (original)
+++ sandbox/chrono/libs/chrono/example/runtime_resolution.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -11,8 +11,8 @@
 This code was extracted by Vicente J. Botet Escriba from Beman Dawes time2_demo.cpp which
 was derived by Beman Dawes from Howard Hinnant's time2_demo prototype.
 Many thanks to Howard for making his code available under the Boost license.
-The original code was modified to conform to Boost conventions and to section
-20.9 Time utilities [time] of the C++ committee's working paper N2798.
+The original code was modified to conform to Boost conventions and to section
+20.9 Time utilities [time] of the C++ committee's working paper N2798.
 See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf.
 
 time2_demo contained this comment:
@@ -33,7 +33,7 @@
 #include <iostream>
 
 #if defined(BOOST_CHRONO_WINDOWS_API)
-#include <windows.h>
+#include <windows.h>
 
 namespace
 {
@@ -126,15 +126,15 @@
 init_duration()
 {
 #if defined(BOOST_CHRONO_WINDOWS_API)
- return static_cast<double>(1) / 1000; // Windows FILETIME is 1 per microsec
-#elif defined(BOOST_CHRONO_MAC_API)
+ return static_cast<double>(1) / 1000; // Windows FILETIME is 1 per microsec
+#elif defined(BOOST_CHRONO_MAC_API)
     mach_timebase_info_data_t MachInfo;
     mach_timebase_info(&MachInfo);
     return static_cast<double>(MachInfo.denom) / MachInfo.numer;
 #elif defined(BOOST_CHRONO_POSIX_API)
     return static_cast<double>(1) / 1000;
 #endif
-
+
 }
 
 const double duration::ticks_per_nanosecond = init_duration();
@@ -178,7 +178,7 @@
 
     static time_point now()
     {
-
+
 #if defined(BOOST_CHRONO_WINDOWS_API)
       timeval tv;
       gettimeofday( &tv, 0 );
@@ -196,7 +196,7 @@
 
     return time_point(duration((static_cast<rep>(ts.tv_sec)<<32) | ts.tv_nsec/1000));
 
-
+
 #endif // POSIX
 
     }

Modified: sandbox/chrono/libs/chrono/example/saturating.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/saturating.cpp (original)
+++ sandbox/chrono/libs/chrono/example/saturating.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -11,8 +11,8 @@
 This code was extracted by Vicente J. Botet Escriba from Beman Dawes time2_demo.cpp which
 was derived by Beman Dawes from Howard Hinnant's time2_demo prototype.
 Many thanks to Howard for making his code available under the Boost license.
-The original code was modified to conform to Boost conventions and to section
-20.9 Time utilities [time] of the C++ committee's working paper N2798.
+The original code was modified to conform to Boost conventions and to section
+20.9 Time utilities [time] of the C++ committee's working paper N2798.
 See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf.
 
 time2_demo contained this comment:

Modified: sandbox/chrono/libs/chrono/example/simulated_thread_interface_demo.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/simulated_thread_interface_demo.cpp (original)
+++ sandbox/chrono/libs/chrono/example/simulated_thread_interface_demo.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -11,8 +11,8 @@
 This code was extracted by Vicente J. Botet Escriba from Beman Dawes time2_demo.cpp which
 was derived by Beman Dawes from Howard Hinnant's time2_demo prototype.
 Many thanks to Howard for making his code available under the Boost license.
-The original code was modified to conform to Boost conventions and to section
-20.9 Time utilities [time] of the C++ committee's working paper N2798.
+The original code was modified to conform to Boost conventions and to section
+20.9 Time utilities [time] of the C++ committee's working paper N2798.
 See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf.
 
 time2_demo contained this comment:

Modified: sandbox/chrono/libs/chrono/example/time2_demo.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/time2_demo.cpp (original)
+++ sandbox/chrono/libs/chrono/example/time2_demo.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -10,8 +10,8 @@
 
 This code was derived by Beman Dawes from Howard Hinnant's time2_demo prototype.
 Many thanks to Howard for making his code available under the Boost license.
-The original code was modified to conform to Boost conventions and to section
-20.9 Time utilities [time] of the C++ committee's working paper N2798.
+The original code was modified to conform to Boost conventions and to section
+20.9 Time utilities [time] of the C++ committee's working paper N2798.
 See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf.
 
 time2_demo contained this comment:
@@ -36,7 +36,7 @@
 #include <ostream>
 #include <stdexcept>
 
-#include <windows.h>
+#include <windows.h>
 
 namespace
 {
@@ -913,7 +913,7 @@
         tv_sec = static_cast<long>(usec / 1000000);
         fixup();
     }
-
+
     // explicit
     operator long long() const {return static_cast<long long>(tv_sec) * 1000000 + tv_usec;}
 
@@ -1070,7 +1070,7 @@
     //mach_timebase_info_data_t MachInfo;
     //mach_timebase_info(&MachInfo);
     //return static_cast<double>(MachInfo.denom) / MachInfo.numer;
- return static_cast<double>(1) / 1000; // Windows FILETIME is 1 per microsec
+ return static_cast<double>(1) / 1000; // Windows FILETIME is 1 per microsec
 }
 
 const double duration::ticks_per_nanosecond = init_duration();

Modified: sandbox/chrono/libs/chrono/example/timeval_demo.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/timeval_demo.cpp (original)
+++ sandbox/chrono/libs/chrono/example/timeval_demo.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -11,8 +11,8 @@
 This code was extracted by Vicente J. Botet Escriba from Beman Dawes time2_demo.cpp which
 was derived by Beman Dawes from Howard Hinnant's time2_demo prototype.
 Many thanks to Howard for making his code available under the Boost license.
-The original code was modified to conform to Boost conventions and to section
-20.9 Time utilities [time] of the C++ committee's working paper N2798.
+The original code was modified to conform to Boost conventions and to section
+20.9 Time utilities [time] of the C++ committee's working paper N2798.
 See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf.
 
 time2_demo contained this comment:
@@ -32,7 +32,7 @@
 
 #include <iostream>
 #if defined(BOOST_CHRONO_WINDOWS_API)
-# include <windows.h>
+# include <windows.h>
 #endif
 
 #if defined(BOOST_CHRONO_WINDOWS_API)
@@ -100,7 +100,7 @@
         tv_sec = static_cast<long>(usec / 1000000);
         fixup();
     }
-
+
     // explicit
     operator long long() const {return static_cast<long long>(tv_sec) * 1000000 + tv_usec;}
 
@@ -187,9 +187,9 @@
 
     xtime xt( ts.tv_sec, ts.tv_nsec/1000);
     return time_point(duration(xt));
-
+
 #endif // POSIX
-
+
 }
 
 void test_xtime_clock()

Modified: sandbox/chrono/libs/chrono/example/xtime.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/xtime.cpp (original)
+++ sandbox/chrono/libs/chrono/example/xtime.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -11,8 +11,8 @@
 This code was extracted by Vicente J. Botet Escriba from Beman Dawes time2_demo.cpp which
 was derived by Beman Dawes from Howard Hinnant's time2_demo prototype.
 Many thanks to Howard for making his code available under the Boost license.
-The original code was modified to conform to Boost conventions and to section
-20.9 Time utilities [time] of the C++ committee's working paper N2798.
+The original code was modified to conform to Boost conventions and to section
+20.9 Time utilities [time] of the C++ committee's working paper N2798.
 See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2798.pdf.
 
 time2_demo contained this comment:

Modified: sandbox/chrono/libs/chrono/src/chrono.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/src/chrono.cpp (original)
+++ sandbox/chrono/libs/chrono/src/chrono.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -8,7 +8,7 @@
 
 // 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
+#define BOOST_CHRONO_SOURCE
 
 #include <boost/chrono/chrono.hpp>
 #include <boost/system/system_error.hpp>

Modified: sandbox/chrono/libs/chrono/src/mac/chrono.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/src/mac/chrono.cpp (original)
+++ sandbox/chrono/libs/chrono/src/mac/chrono.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -101,9 +101,9 @@
 {
     static kern_return_t err;
     static const double factor = compute_monotonic_factor(err);
- if (err != 0)
+ if (err != 0)
       boost::throw_exception(
- system::system_error( err, system::system_category, "chrono::monotonic_clock" ));
+ system::system_error( err, system::system_category, "chrono::monotonic_clock" ));
     return static_cast<monotonic_clock::rep>(mach_absolute_time() * factor);
 }
 
@@ -116,7 +116,7 @@
     if (err != 0) {
       ec.assign( errno, system::system_category );
       return monotonic_clock::rep();
- }
+ }
     return static_cast<monotonic_clock::rep>(mach_absolute_time() * factor);
 }
 
@@ -160,7 +160,7 @@
     static kern_return_t err;
     static FP fp = init_monotonic_clock(err);
     if( err != 0 ) boost::throw_exception(
- system::system_error( err, system::system_category, "chrono::monotonic_clock" ));
+ system::system_error( err, system::system_category, "chrono::monotonic_clock" ));
     return time_point(duration(fp()));
 }
 

Modified: sandbox/chrono/libs/chrono/src/mac/process_clock.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/src/mac/process_clock.cpp (original)
+++ sandbox/chrono/libs/chrono/src/mac/process_clock.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -11,7 +11,7 @@
 
 // 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
+#define BOOST_CHRONO_SOURCE
 
 #include <boost/chrono/config.hpp>
 #include <boost/chrono/process_times.hpp>

Modified: sandbox/chrono/libs/chrono/src/posix/process_clock.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/src/posix/process_clock.cpp (original)
+++ sandbox/chrono/libs/chrono/src/posix/process_clock.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -12,7 +12,7 @@
 
 // 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
+#define BOOST_CHRONO_SOURCE
 
 #include <boost/chrono/config.hpp>
 #include <boost/chrono/process_times.hpp>
@@ -42,42 +42,36 @@
   }
 }
 
-namespace boost
-{
- namespace chrono
- {
+namespace boost { namespace chrono {
 
- void process_clock::now( process_times & times_, system::error_code & ec )
- {
-
- tms tm;
- clock_t c = ::times( &tm );
- if ( c == clock_t(-1) ) // error
- {
- assert( 0 && "error handling not implemented yet" );
+ void process_clock::now( process_times & times_, system::error_code & ec ) {
 
- ec = system::error_code( errno, system::system_category );
- times_.real = times_.system = times_.user = nanoseconds(-1);
- }
- else
- {
- times_.real = microseconds(c);
- times_.system = microseconds(tm.tms_stime + tm.tms_cstime);
- times_.user = microseconds(tm.tms_utime + tm.tms_cutime);
- if ( tick_factor() != -1 )
+ tms tm;
+ clock_t c = ::times( &tm );
+ if ( c == clock_t(-1) ) // error
         {
- times_.real *= tick_factor();
- times_.user *= tick_factor();
- times_.system *= tick_factor();
+ assert( 0 && "error handling not implemented yet" );
+ ec = system::error_code( errno, system::system_category );
+ times_.real = times_.system = times_.user = nanoseconds(-1);
         }
         else
         {
- assert( 0 && "error handling not implemented yet" );
- ec = system::error_code( errno, system::system_category );
- times_.real = times_.user = times_.system = nanoseconds(-1);
+ times_.real = microseconds(c);
+ times_.system = microseconds(tm.tms_stime + tm.tms_cstime);
+ times_.user = microseconds(tm.tms_utime + tm.tms_cutime);
+ if ( tick_factor() != -1 )
+ {
+ times_.real *= tick_factor();
+ times_.user *= tick_factor();
+ times_.system *= tick_factor();
+ }
+ else
+ {
+ assert( 0 && "error handling not implemented yet" );
+ ec = system::error_code( errno, system::system_category );
+ times_.real = times_.user = times_.system = nanoseconds(-1);
+ }
         }
- }
 
     }
- } // namespace chrono
-} // namespace boost
+} }

Modified: sandbox/chrono/libs/chrono/src/process_clock.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/src/process_clock.cpp (original)
+++ sandbox/chrono/libs/chrono/src/process_clock.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -11,7 +11,7 @@
 
 // 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
+#define BOOST_CHRONO_SOURCE
 
 #include <boost/chrono/config.hpp>
 #include <boost/chrono/process_times.hpp>

Modified: sandbox/chrono/libs/chrono/src/run_timer.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/src/run_timer.cpp (original)
+++ sandbox/chrono/libs/chrono/src/run_timer.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -11,7 +11,7 @@
 
 // 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
+#define BOOST_CHRONO_SOURCE
 
 #include <boost/chrono/process_times.hpp>
 #include <boost/system/system_error.hpp>
@@ -95,7 +95,7 @@
     void run_timer::report( system::error_code & ec )
     {
       m_reported = true;
- if ( m_format.empty() ) m_format = default_format;
+ if ( m_format.empty() ) m_format = default_format;
 
       process_times times;
       elapsed( times, ec );
@@ -116,7 +116,7 @@
         {
           assert( 0 && "error reporting not fully implemented yet" );
           //ec = error_code( EIO, errno_ecat );
- }
+ }
       }
     }
 
@@ -124,7 +124,7 @@
 
     void run_timer::test_report( duration real_, duration user_, duration system_ )
     {
- if ( m_format.empty() ) m_format = default_format;
+ if ( m_format.empty() ) m_format = default_format;
 
       process_times times;
       times.real = real_;

Modified: sandbox/chrono/libs/chrono/src/run_timer_static.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/src/run_timer_static.cpp (original)
+++ sandbox/chrono/libs/chrono/src/run_timer_static.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -18,7 +18,7 @@
 
 // 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
+#define BOOST_CHRONO_SOURCE
 
 #include <boost/chrono/process_times.hpp>
 #include <iostream>

Modified: sandbox/chrono/libs/chrono/src/win/process_clock.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/src/win/process_clock.cpp (original)
+++ sandbox/chrono/libs/chrono/src/win/process_clock.cpp 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -11,7 +11,7 @@
 
 // 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
+#define BOOST_CHRONO_SOURCE
 
 #include <boost/chrono/config.hpp>
 #include <boost/chrono/process_times.hpp>

Modified: sandbox/chrono/libs/chrono/test/Jamfile.v2
==============================================================================
--- sandbox/chrono/libs/chrono/test/Jamfile.v2 (original)
+++ sandbox/chrono/libs/chrono/test/Jamfile.v2 2009-12-13 16:44:37 EST (Sun, 13 Dec 2009)
@@ -35,7 +35,7 @@
 
     test-suite "ratio"
         :
- [ compile-fail ratio_fail_test1.cpp : <warnings-as-errors>on ]
+ [ compile-fail ratio_fail_test1.cpp ]
         [ run ratio_test.cpp : : : <link>static ]
         [ run ratio_test.cpp : : : <library>/boost/system//boost_system : ratio_test_dll ]
         ;


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