|
From: Steven W. <ste...@us...> - 2007-04-13 00:51:35
|
Update of /cvsroot/boost-sandbox/boost-sandbox/libs/units/example In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12755/boost-sandbox/libs/units/example Modified Files: unit_example_8.cpp Log Message: suppress warnings Index: unit_example_8.cpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/libs/units/example/unit_example_8.cpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- unit_example_8.cpp 16 Mar 2007 18:29:54 -0000 1.1.1.1 +++ unit_example_8.cpp 13 Apr 2007 00:51:35 -0000 1.2 @@ -77,11 +77,11 @@ static type value(const boost::math::quaternion<Y>& x) { - const static_rational<N,D> rat; + //const static_rational<N,D> rat; - const typename divide_typeof_helper<Y,Y>::type m = Y(rat.numerator())/Y(rat.denominator()); + //const typename divide_typeof_helper<Y,Y>::type m = Y(rat.numerator())/Y(rat.denominator()); - return boost::math::pow(x,m); + return boost::math::pow(x,static_cast<int>(N)); } }; @@ -96,11 +96,11 @@ static type value(const boost::math::quaternion<Y>& x) { - const static_rational<N,D> rat; + //const static_rational<N,D> rat; - const typename divide_typeof_helper<Y,Y>::type m = Y(rat.denominator())/Y(rat.numerator()); + //const typename divide_typeof_helper<Y,Y>::type m = Y(rat.denominator())/Y(rat.numerator()); - return boost::math::pow(x,m); + return boost::math::pow(x,static_cast<int>(D)); } }; //] |