|
From: Steven W. <ste...@us...> - 2007-04-04 23:24:23
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25267/boost-sandbox/boost/units/systems Modified Files: trig.hpp Log Message: Fixed dimensionless_quantity usage Index: trig.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/trig.hpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- trig.hpp 4 Apr 2007 19:53:53 -0000 1.7 +++ trig.hpp 4 Apr 2007 23:24:23 -0000 1.8 @@ -22,7 +22,7 @@ /// cos of theta in radians template<class Y> -typename dimensionless_quantity<SI::plane_angle,Y>::type +typename dimensionless_quantity<SI::system,Y>::type cos(const quantity<SI::plane_angle,Y>& theta) { return std::cos(theta.value()); @@ -30,7 +30,7 @@ /// sin of theta in radians template<class Y> -typename dimensionless_quantity<SI::plane_angle,Y>::type +typename dimensionless_quantity<SI::system,Y>::type sin(const quantity<SI::plane_angle,Y>& theta) { return std::sin(theta.value()); @@ -38,32 +38,32 @@ /// tan of theta in radians template<class Y> -typename dimensionless_quantity<SI::plane_angle,Y>::type +typename dimensionless_quantity<SI::system,Y>::type tan(const quantity<SI::plane_angle,Y>& theta) { return std::tan(theta.value()); } /// cos of theta in other angular units -template<class Unit,class Y> -typename dimensionless_quantity<Unit,Y>::type -cos(const quantity<Unit,Y>& theta) +template<class System,class Y> +typename dimensionless_quantity<System,Y>::type +cos(const quantity<unit<plane_angle_type,System>,Y>& theta) { return cos(quantity<SI::plane_angle,Y>(theta)); } /// sin of theta in other angular units -template<class Unit,class Y> -typename dimensionless_quantity<Unit,Y>::type -sin(const quantity<Unit,Y>& theta) +template<class System,class Y> +typename dimensionless_quantity<System,Y>::type +sin(const quantity<unit<plane_angle_type,System>,Y>& theta) { return sin(quantity<SI::plane_angle,Y>(theta)); } /// tan of theta in other angular units -template<class Unit,class Y> -typename dimensionless_quantity<Unit,Y>::type -tan(const quantity<Unit,Y>& theta) +template<class System,class Y> +typename dimensionless_quantity<System,Y>::type +tan(const quantity<unit<plane_angle_type,System>,Y>& theta) { return tan(quantity<SI::plane_angle,Y>(theta)); } |