Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2007-08-27 13:41:27


Author: steven_watanabe
Date: 2007-08-27 13:41:26 EDT (Mon, 27 Aug 2007)
New Revision: 39008
URL: http://svn.boost.org/trac/boost/changeset/39008

Log:
Fix conversion factors from meters (They were backwards)
Text files modified:
   sandbox/units/boost/units/systems/base_units.hpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: sandbox/units/boost/units/systems/base_units.hpp
==============================================================================
--- sandbox/units/boost/units/systems/base_units.hpp (original)
+++ sandbox/units/boost/units/systems/base_units.hpp 2007-08-27 13:41:26 EDT (Mon, 27 Aug 2007)
@@ -41,10 +41,10 @@
 #include <boost/units/systems/base_units/steradian.hpp>
 #include <boost/units/systems/base_units/yard.hpp>
 
-BOOST_UNITS_DEFINE_CONVERSION(boost::units::meter_base_unit, boost::units::foot_base_unit::unit_type, double, 0.3048);
-BOOST_UNITS_DEFINE_CONVERSION(boost::units::meter_base_unit, boost::units::inch_base_unit::unit_type, double, 25.4e-3);
-BOOST_UNITS_DEFINE_CONVERSION(boost::units::meter_base_unit, boost::units::yard_base_unit::unit_type, double, 0.9144);
-BOOST_UNITS_DEFINE_CONVERSION(boost::units::meter_base_unit, boost::units::mile_base_unit::unit_type, double, 1609.344);
+BOOST_UNITS_DEFINE_CONVERSION(boost::units::foot_base_unit, boost::units::meter_base_unit::unit_type, double, 0.3048);
+BOOST_UNITS_DEFINE_CONVERSION(boost::units::inch_base_unit, boost::units::meter_base_unit::unit_type, double, 25.4e-3);
+BOOST_UNITS_DEFINE_CONVERSION(boost::units::yard_base_unit, boost::units::meter_base_unit::unit_type, double, 0.9144);
+BOOST_UNITS_DEFINE_CONVERSION(boost::units::mile_base_unit, boost::units::meter_base_unit::unit_type, double, 1609.344);
 
 BOOST_UNITS_DEFINE_CONVERSION(boost::units::mile_base_unit, boost::units::yard_base_unit::unit_type, double, 1760.0);
 BOOST_UNITS_DEFINE_CONVERSION(boost::units::mile_base_unit, boost::units::foot_base_unit::unit_type, double, 5280.0);


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