Update of /cvsroot/boost-sandbox/boost-sandbox/libs/units/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21131/boost-sandbox/libs/units/test
Modified Files:
test_quantity.cpp
Log Message:
Replaced mutating value with quantity_cast
Index: test_quantity.cpp
===================================================================
RCS file: /cvsroot/boost-sandbox/boost-sandbox/libs/units/test/test_quantity.cpp,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- test_quantity.cpp 16 Mar 2007 18:29:55 -0000 1.1.1.1
+++ test_quantity.cpp 29 Mar 2007 20:03:27 -0000 1.2
@@ -61,11 +61,11 @@
BOOST_CHECK(E9.value() == E_);
// value assignment
- E9.value() = 1.5;
+ bu::quantity_cast<double&>(E9) = 1.5;
BOOST_CHECK(E9.value() == 1.5);
// value assignment with implicit value_type conversion
- E9.value() = 2;
+ bu::quantity_cast<double&>(E9) = 2;
BOOST_CHECK(E9.value() == double(2));
// operator+=(this_type)
|