|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r62112 - in sandbox/chrono/libs/chrono: example test
From: vicente.botet_at_[hidden]
Date: 2010-05-20 10:24:09
Author: viboes
Date: 2010-05-20 10:24:07 EDT (Thu, 20 May 2010)
New Revision: 62112
URL: http://svn.boost.org/trac/boost/changeset/62112
Log:
Boost.Chrono 0.5:
* Removed unneeded conditional compilation
* Add line at end of file
*
Text files modified:
sandbox/chrono/libs/chrono/example/time2_demo.cpp | 2 --
sandbox/chrono/libs/chrono/test/clock_name.hpp | 2 +-
sandbox/chrono/libs/chrono/test/miscellaneous.cpp | 3 +--
3 files changed, 2 insertions(+), 5 deletions(-)
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 2010-05-20 10:24:07 EDT (Thu, 20 May 2010)
@@ -1639,10 +1639,8 @@
test_duration_division();
I_dont_like_the_default_duration_behavior::test();
test_min();
-#if BOOST_VARIADIC_COMMON_TYPE
inspect_duration(common_type<duration<double>, hours, microseconds>::type(),
"common_type<duration<double>, hours, microseconds>::type");
-#endif
explore_limits();
manipulate_clock_object(system_clock());
duration<double, boost::milli> d = milliseconds(3) * 2.5;
Modified: sandbox/chrono/libs/chrono/test/clock_name.hpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock_name.hpp (original)
+++ sandbox/chrono/libs/chrono/test/clock_name.hpp 2010-05-20 10:24:07 EDT (Thu, 20 May 2010)
@@ -64,4 +64,4 @@
static const char* apply() { return "system_clock, monotonic_clock and high_resolution_clock";}
};
-#endif
\ No newline at end of file
+#endif
Modified: sandbox/chrono/libs/chrono/test/miscellaneous.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/miscellaneous.cpp (original)
+++ sandbox/chrono/libs/chrono/test/miscellaneous.cpp 2010-05-20 10:24:07 EDT (Thu, 20 May 2010)
@@ -139,15 +139,14 @@
int main()
{
+ using namespace boost;
drive_physics_function();
test_range();
test_extended_range();
inspect_all();
test_milliseconds();
-#if BOOST_VARIADIC_COMMON_TYPE
inspect_duration(common_type<duration<double>, hours, microseconds>::type(),
"common_type<duration<double>, hours, microseconds>::type");
-#endif
duration<double, boost::milli> d = milliseconds(3) * 2.5;
inspect_duration(milliseconds(3) * 2.5, "milliseconds(3) * 2.5");
std::cout << d.count() << '\n';
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