From: Steven W. <ste...@us...> - 2007-04-15 02:57:05
|
Update of /cvsroot/boost-sandbox/boost-sandbox/libs/units/test In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26207/boost-sandbox/libs/units/test Modified Files: test_quantity.cpp Log Message: Supress implicit narrowing conversions Index: test_quantity.cpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/libs/units/test/test_quantity.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- test_quantity.cpp 29 Mar 2007 20:03:27 -0000 1.2 +++ test_quantity.cpp 15 Apr 2007 02:57:02 -0000 1.3 @@ -50,11 +50,11 @@ BOOST_UNITS_CHECK_CLOSE(E5.value(),float(E_)); // implicit operator= value_type conversion - const bu::quantity<bu::energy,float> E7 = E2; - BOOST_UNITS_CHECK_CLOSE(E7.value(),float(E_)); + //const bu::quantity<bu::energy,float> E7 = E2; + //BOOST_UNITS_CHECK_CLOSE(E7.value(),float(E_)); - const bu::quantity<bu::energy,long> E8 = E2; - BOOST_CHECK(E8.value() == long(E_)); + //const bu::quantity<bu::energy,long> E8 = E2; + //BOOST_CHECK(E8.value() == long(E_)); // const construction bu::quantity<bu::energy> E9(E2); |