From db7a0a41b79148be0c050ccbde2685a7a5256364 Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Sun, 16 Dec 2012 08:49:51 +0000 Subject: [PATCH] Ratio: warning removal [SVN r82016] --- example/si_physics.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/example/si_physics.cpp b/example/si_physics.cpp index 998a5dd..1e526b5 100644 --- a/example/si_physics.cpp +++ b/example/si_physics.cpp @@ -186,12 +186,12 @@ int main() { //~ typedef boost::ratio<8, BOOST_INTMAX_C(0x7FFFFFFFD)> R1; //~ typedef boost::ratio<3, BOOST_INTMAX_C(0x7FFFFFFFD)> R2; - typedef User1::quantity, boost::ratio<1> >::type, + typedef User1::quantity, boost::ratio<1> >::type, boost::ratio_subtract, boost::ratio<0> >::type > RR; //~ typedef boost::ratio_subtract::type RS; //~ std::cout << RS::num << '/' << RS::den << '\n'; - - + + std::cout << "*************\n"; std::cout << "* testUser1 *\n"; std::cout << "*************\n"; @@ -201,14 +201,14 @@ int main() //~ boost_ex::chrono::seconds sss=boost_ex::chrono::duration_cast(h); //~ User1::seconds sss((120)); //~ User1::Time t(( sss )); - - //typedef User1::quantity::type, + + //typedef User1::quantity::type, // boost::ratio_subtract::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();