|
From: Steven W. <ste...@us...> - 2007-03-29 19:02:30
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25498/boost-sandbox/boost/units Modified Files: cmath.hpp Log Message: Replaced quantity_reinterpret_cast with quantity_cast Index: cmath.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/cmath.hpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- cmath.hpp 29 Mar 2007 00:32:41 -0000 1.2 +++ cmath.hpp 29 Mar 2007 19:02:29 -0000 1.3 @@ -409,7 +409,7 @@ typedef quantity<Unit,Y> quantity_type; - return quantity_type::from_value(modf(q1.value(), quantity_reinterpret_cast<Y*>(q2))); + return quantity_type::from_value(modf(q1.value(), &quantity_cast<Y&>(*q2))); } template<class Unit, class Y, class Int> |