Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82015 - trunk/libs/ratio/example
From: vicente.botet_at_[hidden]
Date: 2012-12-16 03:34:20


Author: viboes
Date: 2012-12-16 03:34:19 EST (Sun, 16 Dec 2012)
New Revision: 82015
URL: http://svn.boost.org/trac/boost/changeset/82015

Log:
Ratio: warning removal
Text files modified:
   trunk/libs/ratio/example/si_physics.cpp | 14 +++++++-------
   1 files changed, 7 insertions(+), 7 deletions(-)

Modified: trunk/libs/ratio/example/si_physics.cpp
==============================================================================
--- trunk/libs/ratio/example/si_physics.cpp (original)
+++ trunk/libs/ratio/example/si_physics.cpp 2012-12-16 03:34:19 EST (Sun, 16 Dec 2012)
@@ -186,12 +186,12 @@
 {
     //~ typedef boost::ratio<8, BOOST_INTMAX_C(0x7FFFFFFFD)> R1;
     //~ typedef boost::ratio<3, BOOST_INTMAX_C(0x7FFFFFFFD)> R2;
- typedef User1::quantity<boost::ratio_subtract<boost::ratio<0>, boost::ratio<1> >::type,
+ typedef User1::quantity<boost::ratio_subtract<boost::ratio<0>, boost::ratio<1> >::type,
                              boost::ratio_subtract<boost::ratio<1>, boost::ratio<0> >::type > RR;
     //~ typedef boost::ratio_subtract<R1, R2>::type RS;
     //~ std::cout << RS::num << '/' << RS::den << '\n';
-
-
+
+
     std::cout << "*************\n";
     std::cout << "* testUser1 *\n";
     std::cout << "*************\n";
@@ -201,14 +201,14 @@
     //~ boost_ex::chrono::seconds sss=boost_ex::chrono::duration_cast<boost_ex::chrono::seconds>(h);
     //~ User1::seconds sss((120));
     //~ User1::Time t(( sss ));
-
- //typedef User1::quantity<boost::ratio_subtract<User1::Distance::time_dim, User1::Time::time_dim >::type,
+
+ //typedef User1::quantity<boost::ratio_subtract<User1::Distance::time_dim, User1::Time::time_dim >::type,
     // boost::ratio_subtract<User1::Distance::distance_dim, User1::Time::distance_dim >::type > R;
     RR r=d / t;
     //r.set(d.get() / t.get());
-
+
     User1::Speed rc= r;
-
+ (void)rc;
     User1::Speed s = d / t;
     std::cout << "Speed = " << s.get() << " meters/sec\n";
     User1::Acceleration a = User1::Distance( User1::foot(32.2) ) / User1::Time() / User1::Time();


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