|
Boost-Commit : |
From: steven_at_[hidden]
Date: 2008-05-15 15:19:47
Author: steven_watanabe
Date: 2008-05-15 15:19:47 EDT (Thu, 15 May 2008)
New Revision: 45401
URL: http://svn.boost.org/trac/boost/changeset/45401
Log:
Fixed base_unit_info namespace
Text files modified:
sandbox/units/boost/units/systems/metric/arcminute.hpp | 8 ++------
sandbox/units/boost/units/systems/metric/arcsecond.hpp | 8 ++------
2 files changed, 4 insertions(+), 12 deletions(-)
Modified: sandbox/units/boost/units/systems/metric/arcminute.hpp
==============================================================================
--- sandbox/units/boost/units/systems/metric/arcminute.hpp (original)
+++ sandbox/units/boost/units/systems/metric/arcminute.hpp 2008-05-15 15:19:47 EDT (Thu, 15 May 2008)
@@ -11,11 +11,6 @@
#ifndef BOOST_UNIT_SYSTEMS_OTHER_ARCMINUTE_HPP_INCLUDED
#define BOOST_UNIT_SYSTEMS_OTHER_ARCMINUTE_HPP_INCLUDED
-//#include <boost/units/systems/detail/non_si_unit.hpp>
-//#include <boost/units/systems/base_units/radian.hpp>
-//
-//BOOST_UNITS_NON_SI_UNIT(metric, arcminute, arcminute, (3.14159265358979323846264338328/10800), radian_base_unit, 8);
-
#include <boost/units/scaled_base_unit.hpp>
#include <boost/units/static_rational.hpp>
#include <boost/units/scale.hpp>
@@ -27,6 +22,8 @@
typedef scaled_base_unit<degree_base_unit, scale<60, static_rational<-1> > > arcminute_base_unit;
+}
+
template<>
struct base_unit_info<metric::arcminute_base_unit> {
static const char* name() { return("arcminute"); }
@@ -35,6 +32,5 @@
}
}
-}
#endif
Modified: sandbox/units/boost/units/systems/metric/arcsecond.hpp
==============================================================================
--- sandbox/units/boost/units/systems/metric/arcsecond.hpp (original)
+++ sandbox/units/boost/units/systems/metric/arcsecond.hpp 2008-05-15 15:19:47 EDT (Thu, 15 May 2008)
@@ -11,11 +11,6 @@
#ifndef BOOST_UNIT_SYSTEMS_OTHER_ARCSECOND_HPP_INCLUDED
#define BOOST_UNIT_SYSTEMS_OTHER_ARCSECOND_HPP_INCLUDED
-//#include <boost/units/systems/detail/non_si_unit.hpp>
-//#include <boost/units/systems/base_units/radian.hpp>
-
-//BOOST_UNITS_NON_SI_UNIT(metric, arcsecond, arcsecond, (3.14159265358979323846264338328/648000), radian_base_unit, 9);
-
#include <boost/units/scaled_base_unit.hpp>
#include <boost/units/static_rational.hpp>
#include <boost/units/scale.hpp>
@@ -27,6 +22,8 @@
typedef scaled_base_unit<degree_base_unit, scale<60, static_rational<-2> > > arcsecond_base_unit;
+}
+
template<>
struct base_unit_info<metric::arcsecond_base_unit> {
static const char* name() { return("arcsecond"); }
@@ -35,6 +32,5 @@
}
}
-}
#endif
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