From: Steven W. <ste...@us...> - 2007-04-14 21:52:13
|
Update of /cvsroot/boost-sandbox/boost-sandbox/libs/units/example In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4785/boost-sandbox/libs/units/example Modified Files: test_system.hpp Log Message: new base_dimension and made all tests and examples pass Index: test_system.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/libs/units/example/test_system.hpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- test_system.hpp 13 Apr 2007 06:09:44 -0000 1.6 +++ test_system.hpp 14 Apr 2007 21:52:00 -0000 1.7 @@ -26,9 +26,9 @@ namespace units { //[test_system_snippet_1 -BOOST_UNITS_REGISTER_BASE_DIMENSION(length_dim,1); ///> base dimension of length -BOOST_UNITS_REGISTER_BASE_DIMENSION(mass_dim,2); ///> base dimension of mass -BOOST_UNITS_REGISTER_BASE_DIMENSION(time_dim,3); ///> base dimension of time +struct length_dim : boost::units::base_dimension<length_dim, 1> {}; ///> base dimension of length +struct mass_dim : boost::units::base_dimension<mass_dim,2> {}; ///> base dimension of mass +struct time_dim : boost::units::base_dimension<time_dim,3> {}; ///> base dimension of time //typedef base_dimension<1> length_dim; //typedef base_dimension<2> mass_dim; //typedef base_dimension<3> time_dim; |