Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-05-17 20:35:13


Author: steven_watanabe
Date: 2008-05-17 20:35:13 EDT (Sat, 17 May 2008)
New Revision: 45460
URL: http://svn.boost.org/trac/boost/changeset/45460

Log:
Updated references to base units
Text files modified:
   sandbox/units/libs/units/test/test_absolute.cpp | 14 ++++++++++----
   1 files changed, 10 insertions(+), 4 deletions(-)

Modified: sandbox/units/libs/units/test/test_absolute.cpp
==============================================================================
--- sandbox/units/libs/units/test/test_absolute.cpp (original)
+++ sandbox/units/libs/units/test/test_absolute.cpp 2008-05-17 20:35:13 EDT (Sat, 17 May 2008)
@@ -25,7 +25,10 @@
 #include <boost/units/absolute.hpp>
 #include <boost/units/unit.hpp>
 #include <boost/units/make_system.hpp>
-#include <boost/units/systems/base_units.hpp>
+#include <boost/units/systems/physical_dimensions.hpp>
+#include <boost/units/systems/si/base_units/kelvin.hpp>
+#include <boost/units/systems/temperature/base_units/celsius.hpp>
+#include <boost/units/systems/temperature/base_units/fahrenheit.hpp>
 
 #include <iostream>
 
@@ -34,12 +37,15 @@
 #define BOOST_UNITS_CHECK_CLOSE(a, b) (BOOST_CHECK((std::abs((a) - (b)) < .0000001)))
 
 namespace bu = boost::units;
+using bu::SI::kelvin_base_unit;
+using bu::temperature::celsius_base_unit;
+using bu::temperature::fahrenheit_base_unit;
 
-typedef bu::unit<bu::temperature_dimension,bu::make_system<bu::kelvin_base_unit>::type> kelvin_type;
+typedef bu::unit<bu::temperature_dimension,bu::make_system<kelvin_base_unit>::type> kelvin_type;
 
-typedef bu::unit<bu::temperature_dimension,bu::make_system<bu::celsius_base_unit>::type> celsius_type;
+typedef bu::unit<bu::temperature_dimension,bu::make_system<celsius_base_unit>::type> celsius_type;
 
-typedef bu::unit<bu::temperature_dimension,bu::make_system<bu::fahrenheit_base_unit>::type> fahrenheit_type;
+typedef bu::unit<bu::temperature_dimension,bu::make_system<fahrenheit_base_unit>::type> fahrenheit_type;
 
 int test_main(int,char *[])
 {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk