|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81653 - trunk/libs/chrono/example
From: vicente.botet_at_[hidden]
Date: 2012-12-01 11:03:12
Author: viboes
Date: 2012-12-01 11:03:11 EST (Sat, 01 Dec 2012)
New Revision: 81653
URL: http://svn.boost.org/trac/boost/changeset/81653
Log:
Chrono: remove warning
Text files modified:
trunk/libs/chrono/example/test_duration.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
Modified: trunk/libs/chrono/example/test_duration.cpp
==============================================================================
--- trunk/libs/chrono/example/test_duration.cpp (original)
+++ trunk/libs/chrono/example/test_duration.cpp 2012-12-01 11:03:11 EST (Sat, 01 Dec 2012)
@@ -98,7 +98,9 @@
void test_duration_multiply()
{
hours h15= 5 * hours(3);
+ (void)h15;
hours h6= hours(3) *2;
+ (void)h6;
}
void f(duration<double> d, double res) // accept floating point seconds
@@ -183,8 +185,11 @@
duration<double, boost::milli> d = milliseconds(3) * 2.5;
duration<double, boost::milli> d2 = 2.5 * milliseconds(3) ;
+ (void)d2;
duration<double, boost::milli> d3 = milliseconds(3) / 2.5;
+ (void)d3;
duration<double, boost::milli> d4 = milliseconds(3) + milliseconds(5) ;
+ (void)d4;
inspect_duration(milliseconds(3) * 2.5, "milliseconds(3) * 2.5");
std::cout << d.count() << '\n';
// milliseconds ms(3.5); // doesn't compile
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