From: Steven W. <ste...@us...> - 2007-04-14 21:53:23
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5562/boost-sandbox/boost/units/systems Modified Files: physical_units.hpp Log Message: new base_dimension and made all tests and examples pass Index: physical_units.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/physical_units.hpp,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- physical_units.hpp 13 Apr 2007 06:08:52 -0000 1.17 +++ physical_units.hpp 14 Apr 2007 21:53:22 -0000 1.18 @@ -30,15 +30,15 @@ namespace units { -BOOST_UNITS_REGISTER_BASE_DIMENSION(length_dim,-9); ///> base dimension of length -BOOST_UNITS_REGISTER_BASE_DIMENSION(mass_dim,-8); ///> base dimension of mass -BOOST_UNITS_REGISTER_BASE_DIMENSION(time_dim,-7); ///> base dimension of time -BOOST_UNITS_REGISTER_BASE_DIMENSION(current_dim,-6); ///> base dimension of current -BOOST_UNITS_REGISTER_BASE_DIMENSION(temperature_dim,-5); ///> base dimension of temperature -BOOST_UNITS_REGISTER_BASE_DIMENSION(amount_dim,-4); ///> base dimension of amount -BOOST_UNITS_REGISTER_BASE_DIMENSION(luminous_intensity_dim,-3); ///> base dimension of luminous intensity -BOOST_UNITS_REGISTER_BASE_DIMENSION(plane_angle_dim,-2); ///> base dimension of plane angle -BOOST_UNITS_REGISTER_BASE_DIMENSION(solid_angle_dim,-1); ///> base dimension of solid angle +struct length_dim : boost::units::base_dimension<length_dim, -9> {}; ///> base dimension of length +struct mass_dim : boost::units::base_dimension<mass_dim,-8> {}; ///> base dimension of mass +struct time_dim : boost::units::base_dimension<time_dim,-7> {}; ///> base dimension of time +struct current_dim : boost::units::base_dimension<current_dim,-6> {}; ///> base dimension of current +struct temperature_dim : boost::units::base_dimension<temperature_dim,-5> {}; ///> base dimension of temperature +struct amount_dim : boost::units::base_dimension<amount_dim,-4> {}; ///> base dimension of amount +struct luminous_intensity_dim : boost::units::base_dimension<luminous_intensity_dim,-3> {}; ///> base dimension of luminous intensity +struct plane_angle_dim : boost::units::base_dimension<plane_angle_dim,-2> {}; ///> base dimension of plane angle +struct solid_angle_dim : boost::units::base_dimension<solid_angle_dim,-1> {}; ///> base dimension of solid angle } // namespace units |