From: Steven W. <ste...@us...> - 2007-04-21 18:50:56
|
Update of /cvsroot/boost-sandbox/boost-sandbox/libs/units/example In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2497/boost-sandbox/libs/units/example Modified Files: unit_example_15.cpp Log Message: Use base_dimension Index: unit_example_15.cpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/libs/units/example/unit_example_15.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- unit_example_15.cpp 13 Apr 2007 01:15:39 -0000 1.6 +++ unit_example_15.cpp 21 Apr 2007 18:50:54 -0000 1.7 @@ -27,6 +27,7 @@ #include <boost/array.hpp> +#include <boost/units/base_dimension.hpp> #include <boost/units/quantity.hpp> #include <boost/units/systems/si/length.hpp> @@ -35,11 +36,9 @@ namespace units { // fails due to redefinition of tag -//BOOST_UNITS_REGISTER_BASE_DIMENSION(erroneous_tag,-1); -BOOST_UNITS_REGISTER_BASE_DIMENSION(world_space_tag,101); -BOOST_UNITS_REGISTER_BASE_DIMENSION(object_space_tag,102); -//typedef base_dimension<101> world_space_tag; -//typedef base_dimension<102> object_space_tag; +//struct erroneous_tag : base_dimension<erroneous_tag,-1> {}; +struct world_space_tag : base_dimension<world_space_tag,101> {}; +struct object_space_tag : base_dimension<object_space_tag, 102> {}; namespace wo { |