|
From: Matthias S. <mat...@us...> - 2007-04-05 03:05:59
|
Update of /cvsroot/boost-sandbox/boost-sandbox/libs/units/example In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26672/example Modified Files: unit_example_22.cpp Removed Files: measurement.hpp Log Message: remove redundant header --- measurement.hpp DELETED --- Index: unit_example_22.cpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/libs/units/example/unit_example_22.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- unit_example_22.cpp 5 Apr 2007 00:36:58 -0000 1.10 +++ unit_example_22.cpp 5 Apr 2007 03:05:44 -0000 1.11 @@ -348,7 +348,7 @@ return 0; } */ - +/* #include <iostream> #include <boost/units/io.hpp> @@ -389,7 +389,7 @@ return 0; } - +*/ /* #define MCS_USE_BOOST_REGEX_DEMANGLING @@ -413,5 +413,21 @@ return 0; } */ +#include <iostream> + +#include <boost/units/io.hpp> +#include <boost/units/quantity.hpp> +#include <boost/units/systems/si/force.hpp> +#include <boost/units/systems/cgs/force.hpp> + +int main() +{ + using namespace boost; + using namespace boost::units; + + std::cout << quantity<SI::dimensionless>(1.0*CGS::dyne/SI::newton) << std::endl; + + return 0; +} |