Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-05-14 00:41:37


Author: steven_watanabe
Date: 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
New Revision: 45352
URL: http://svn.boost.org/trac/boost/changeset/45352

Log:
Moved scale unto its own header
Added:
   sandbox/units/boost/units/scale.hpp
      - copied, changed from r45345, /sandbox/units/boost/units/scaled_base_unit.hpp
Text files modified:
   sandbox/units/boost/units/detail/conversion_impl.hpp | 2
   sandbox/units/boost/units/heterogeneous_system.hpp | 2
   sandbox/units/boost/units/scale.hpp | 89 -------------
   sandbox/units/boost/units/scaled_base_unit.hpp | 258 ---------------------------------------
   sandbox/units/boost/units/systems/other/angstrom.hpp | 1
   sandbox/units/boost/units/systems/other/apothecaries_dram.hpp | 1
   sandbox/units/boost/units/systems/other/apothecaries_ounce.hpp | 1
   sandbox/units/boost/units/systems/other/apothecaries_pound.hpp | 1
   sandbox/units/boost/units/systems/other/apothecaries_scruple.hpp | 1
   sandbox/units/boost/units/systems/other/avoirdupois_ounce.hpp | 1
   sandbox/units/boost/units/systems/other/avoirdupois_pound.hpp | 1
   sandbox/units/boost/units/systems/other/bushel.hpp | 1
   sandbox/units/boost/units/systems/other/day.hpp | 1
   sandbox/units/boost/units/systems/other/dry_quart.hpp | 1
   sandbox/units/boost/units/systems/other/fermi.hpp | 1
   sandbox/units/boost/units/systems/other/fluid_dram.hpp | 1
   sandbox/units/boost/units/systems/other/fluid_ounce.hpp | 1
   sandbox/units/boost/units/systems/other/gallon.hpp | 1
   sandbox/units/boost/units/systems/other/gill.hpp | 1
   sandbox/units/boost/units/systems/other/hour.hpp | 1
   sandbox/units/boost/units/systems/other/liquid_pint.hpp | 1
   sandbox/units/boost/units/systems/other/liquid_quart.hpp | 1
   sandbox/units/boost/units/systems/other/micron.hpp | 1
   sandbox/units/boost/units/systems/other/minute.hpp | 1
   sandbox/units/boost/units/systems/other/peck.hpp | 1
   sandbox/units/boost/units/systems/other/pennyweight.hpp | 1
   sandbox/units/boost/units/systems/other/short_hundredweight.hpp | 1
   sandbox/units/boost/units/systems/other/short_ton.hpp | 1
   sandbox/units/boost/units/systems/other/ton.hpp | 1
   29 files changed, 34 insertions(+), 342 deletions(-)

Modified: sandbox/units/boost/units/detail/conversion_impl.hpp
==============================================================================
--- sandbox/units/boost/units/detail/conversion_impl.hpp (original)
+++ sandbox/units/boost/units/detail/conversion_impl.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -24,7 +24,7 @@
 #include <boost/units/dimension_list.hpp>
 #include <boost/units/heterogeneous_system.hpp>
 #include <boost/units/homogeneous_system.hpp>
-#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/static_rational.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/detail/heterogeneous_conversion.hpp>

Modified: sandbox/units/boost/units/heterogeneous_system.hpp
==============================================================================
--- sandbox/units/boost/units/heterogeneous_system.hpp (original)
+++ sandbox/units/boost/units/heterogeneous_system.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -28,7 +28,7 @@
 #include <boost/units/config.hpp>
 #include <boost/units/static_rational.hpp>
 #include <boost/units/dimension.hpp>
-#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/detail/push_front_if.hpp>
 #include <boost/units/detail/push_front_or_add.hpp>

Copied: sandbox/units/boost/units/scale.hpp (from r45345, /sandbox/units/boost/units/scaled_base_unit.hpp)
==============================================================================
--- /sandbox/units/boost/units/scaled_base_unit.hpp (original)
+++ sandbox/units/boost/units/scale.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -8,8 +8,8 @@
 // accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_UNITS_SCALED_SYSTEM_HPP_INCLUDED
-#define BOOST_UNITS_SCALED_SYSTEM_HPP_INCLUDED
+#ifndef BOOST_UNITS_SCALE_HPP_INCLUDED
+#define BOOST_UNITS_SCALE_HPP_INCLUDED
 
 #include <string>
 
@@ -44,6 +44,9 @@
 template<class T, class E>
 struct heterogeneous_system_dim;
 
+template<class S, class Scale>
+struct scaled_base_unit;
+
 /// class representing a scaling factor such as 10^3
 /// The exponent should be a static rational.
 template<long Base, class Exponent>
@@ -121,48 +124,6 @@
 
 #endif
 
-/// INTERNAL ONLY
-struct scaled_base_unit_tag {};
-
-template<class S, class Scale>
-struct scaled_base_unit
-{
- typedef scaled_base_unit type;
- typedef scaled_base_unit_tag tag;
- typedef S system_type;
- typedef Scale scale_type;
- typedef typename S::dimension_type dimension_type;
-
-#ifdef BOOST_UNITS_DOXYGEN
-
- typedef detail::unspecified unit_type;
-
-#else
-
- typedef unit<
- dimension_type,
- heterogeneous_system<
- heterogeneous_system_pair<
- dimension_list<
- heterogeneous_system_dim<scaled_base_unit,static_rational<1> >,
- dimensionless_type
- >,
- dimension_type
- >
- >
- > unit_type;
-
-#endif
-
- static std::string symbol()
- {
- return(Scale::symbol_prefix() + S::symbol());
- }
- static std::string name()
- {
- return(Scale::name_prefix() + S::name());
- }
-};
 
 } // namespace units
 
@@ -173,7 +134,6 @@
 #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
 
 BOOST_TYPEOF_REGISTER_TEMPLATE(boost::units::scale, (long)(class))
-BOOST_TYPEOF_REGISTER_TEMPLATE(boost::units::scaled_base_unit, (class)(class))
 
 #endif
 
@@ -181,12 +141,6 @@
 
 namespace units {
 
-namespace detail {
-
-struct unspecified;
-
-}
-
 /// removes all scaling from a unit or a base unit.
 template<class T>
 struct unscale
@@ -359,39 +313,6 @@
     };
 };
 
-/// INTERNAL ONLY
-template<class Tag>
-struct less_impl<boost::units::scaled_base_unit_tag, Tag>
-{
- template<class T0, class T1>
- struct apply : mpl::bool_<
- ((mpl::less<typename T0::system_type, T1>::value) ||
- ((boost::is_same<typename T0::system_type, T1>::value) && ((T0::scale_type::exponent::Numerator) < 0)))> {};
-};
-
-/// INTERNAL ONLY
-template<class Tag>
-struct less_impl<Tag, boost::units::scaled_base_unit_tag>
-{
- template<class T0, class T1>
- struct apply : mpl::bool_<
- ((mpl::less<T0, typename T1::system_type>::value) ||
- ((boost::is_same<T0, typename T1::system_type>::value) && ((T1::scale_type::exponent::Numerator) > 0)))> {};
-};
-
-/// INTERNAL ONLY
-template<>
-struct less_impl<boost::units::scaled_base_unit_tag, boost::units::scaled_base_unit_tag>
-{
- template<class T0, class T1>
- struct apply : mpl::bool_<
- ((mpl::less<typename T0::system_type, typename T1::system_type>::value) ||
- ((boost::is_same<typename T0::system_type, typename T1::system_type>::value) &&
- (((T0::scale_type::base) < (T1::scale_type::base)) ||
- (((T0::scale_type::base) == (T1::scale_type::base)) &&
- (mpl::less<typename T0::scale_type::exponent,typename T1::scale_type::exponent>::value)))))> {};
-};
-
 } // namespace mpl
 
 #endif

Modified: sandbox/units/boost/units/scaled_base_unit.hpp
==============================================================================
--- sandbox/units/boost/units/scaled_base_unit.hpp (original)
+++ sandbox/units/boost/units/scaled_base_unit.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -8,8 +8,8 @@
 // accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
-#ifndef BOOST_UNITS_SCALED_SYSTEM_HPP_INCLUDED
-#define BOOST_UNITS_SCALED_SYSTEM_HPP_INCLUDED
+#ifndef BOOST_UNITS_BASE_UNIT_HPP_INCLUDED
+#define BOOST_UNITS_BASE_UNIT_HPP_INCLUDED
 
 #include <string>
 
@@ -44,83 +44,6 @@
 template<class T, class E>
 struct heterogeneous_system_dim;
 
-/// class representing a scaling factor such as 10^3
-/// The exponent should be a static rational.
-template<long Base, class Exponent>
-struct scale
-{
- static const long base = Base;
- typedef Exponent exponent;
- typedef double value_type;
- static value_type value() { return(detail::static_rational_power<Exponent>(static_cast<double>(base))); }
-};
-
-template<long Base, class Exponent>
-const long scale<Base, Exponent>::base;
-
-/// INTERNAL ONLY
-template<long Base>
-struct scale<Base, static_rational<0> >
-{
- static const long base = Base;
- typedef static_rational<0> exponent;
- typedef one value_type;
- static one value() { return(one()); }
- static std::string name_prefix() { return(std::string()); }
- static std::string symbol_prefix() { return(std::string()); }
-};
-
-#ifndef BOOST_UNITS_DOXYGEN
-
-#define BOOST_UNITS_SCALE_SPECIALIZATION(base_,exponent_,val,name,symbol) \
-template<> \
-struct scale<base_, exponent_ > \
-{ \
- static const long base = base_; \
- typedef exponent_ exponent; \
- typedef double value_type; \
- static value_type value() { return(val); } \
- static std::string name_prefix() { return(#name); } \
- static std::string symbol_prefix() { return(#symbol); } \
-}
-
-#define BOOST_UNITS_SCALE_DEF(exponent,value,name,symbol) \
- BOOST_UNITS_SCALE_SPECIALIZATION(10,static_rational<exponent>,value, name, symbol)
-
-BOOST_UNITS_SCALE_DEF(-24, 1e-24 ,yocto, y);
-BOOST_UNITS_SCALE_DEF(-21, 1e-21, zepto, z);
-BOOST_UNITS_SCALE_DEF(-18, 1e-18, atto, a);
-BOOST_UNITS_SCALE_DEF(-15, 1e-15, femto, f);
-BOOST_UNITS_SCALE_DEF(-12, 1e-12, pico, p);
-BOOST_UNITS_SCALE_DEF(-9, 1e-9, nano, n);
-BOOST_UNITS_SCALE_DEF(-6, 1e-6, micro, u);
-BOOST_UNITS_SCALE_DEF(-3, 1e-3, milli, m);
-BOOST_UNITS_SCALE_DEF(-2, 1e-2, centi, c);
-BOOST_UNITS_SCALE_DEF(-1, 1e-1, deci, d);
-
-BOOST_UNITS_SCALE_DEF(1, 1e1, deka, da);
-BOOST_UNITS_SCALE_DEF(2, 1e2, hecto, h);
-BOOST_UNITS_SCALE_DEF(3, 1e3, kilo, k);
-BOOST_UNITS_SCALE_DEF(6, 1e6, mega, M);
-BOOST_UNITS_SCALE_DEF(9, 1e9, giga, G);
-BOOST_UNITS_SCALE_DEF(12, 1e12, tera, T);
-BOOST_UNITS_SCALE_DEF(15, 1e15, peta, P);
-BOOST_UNITS_SCALE_DEF(18, 1e18, exa, E);
-BOOST_UNITS_SCALE_DEF(21, 1e21, zetta, Z);
-BOOST_UNITS_SCALE_DEF(24, 1e24, yotta, Y);
-
-BOOST_UNITS_SCALE_SPECIALIZATION(2, static_rational<10>, 1024.0, kibi, Ki);
-BOOST_UNITS_SCALE_SPECIALIZATION(2, static_rational<20>, 1048576.0, mebi, Mi);
-BOOST_UNITS_SCALE_SPECIALIZATION(2, static_rational<30>, 1073741824.0, gibi, Gi);
-BOOST_UNITS_SCALE_SPECIALIZATION(2, static_rational<40>, 1099511627776.0, tebi, Ti);
-BOOST_UNITS_SCALE_SPECIALIZATION(2, static_rational<50>, 1125899906842624.0, pebi, Pi);
-BOOST_UNITS_SCALE_SPECIALIZATION(2, static_rational<60>, 1152921504606846976.0, exbi, Ei);
-
-#undef BOOST_UNITS_SCALE_DEF
-#undef BOOST_UNITS_SCALE_SPECIALIZATION
-
-#endif
-
 /// INTERNAL ONLY
 struct scaled_base_unit_tag {};
 
@@ -172,194 +95,17 @@
 
 #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
 
-BOOST_TYPEOF_REGISTER_TEMPLATE(boost::units::scale, (long)(class))
 BOOST_TYPEOF_REGISTER_TEMPLATE(boost::units::scaled_base_unit, (class)(class))
 
 #endif
 
 namespace boost {
 
-namespace units {
-
-namespace detail {
-
-struct unspecified;
-
-}
-
-/// removes all scaling from a unit or a base unit.
-template<class T>
-struct unscale
-{
-#ifndef BOOST_UNITS_DOXYGEN
- typedef T type;
-#else
- typedef detail::unspecified type;
-#endif
-};
-
-/// INTERNAL ONLY
-template<class S, class Scale>
-struct unscale<scaled_base_unit<S, Scale> >
-{
- typedef typename unscale<S>::type type;
-};
-
-/// INTERNAL ONLY
-template<class D, class S>
-struct unscale<unit<D, S> >
-{
- typedef unit<D, typename unscale<S>::type> type;
-};
-
-/// INTERNAL ONLY
-template<class Scale>
-struct scale_list_dim;
-
-/// INTERNAL ONLY
-template<class T>
-struct get_scale_list
-{
- typedef dimensionless_type type;
-};
-
-/// INTERNAL ONLY
-template<class S, class Scale>
-struct get_scale_list<scaled_base_unit<S, Scale> >
-{
- typedef typename mpl::times<dimension_list<scale_list_dim<Scale>, dimensionless_type>, typename get_scale_list<S>::type>::type type;
-};
-
-/// INTERNAL ONLY
-template<class D, class S>
-struct get_scale_list<unit<D, S> >
-{
- typedef typename get_scale_list<S>::type type;
-};
-
-/// INTERNAL ONLY
-struct scale_dim_tag {};
-
-/// INTERNAL ONLY
-template<class Scale>
-struct scale_list_dim : Scale
-{
- typedef scale_dim_tag tag;
- typedef scale_list_dim type;
-};
-
-} // namespace units
-
-#ifndef BOOST_UNITS_DOXYGEN
-
-namespace mpl {
-
-/// INTERNAL ONLY
-template<>
-struct less_impl<boost::units::scale_dim_tag, boost::units::scale_dim_tag>
-{
- template<class T0, class T1>
- struct apply : mpl::bool_<((T0::base) < (T1::base))> {};
-};
-
-}
-
-#endif
-
-namespace units {
-
-namespace detail {
-
-template<int N>
-struct eval_scale_list_impl
-{
- template<class Begin>
- struct apply
- {
- typedef typename eval_scale_list_impl<N-1>::template apply<typename mpl::next<Begin>::type> next_iteration;
- typedef typename multiply_typeof_helper<typename next_iteration::type, typename mpl::deref<Begin>::type::value_type>::type type;
- static type value()
- {
- return(next_iteration::value() * mpl::deref<Begin>::type::value());
- }
- };
-};
-
-template<>
-struct eval_scale_list_impl<0>
-{
- template<class Begin>
- struct apply
- {
- typedef one type;
- static type value()
- {
- return(type());
- }
- };
-};
-
-}
-
-/// INTERNAL ONLY
-template<class T>
-struct eval_scale_list : detail::eval_scale_list_impl<mpl::size<T>::value>::template apply<typename mpl::begin<T>::type> {};
-
-} // namespace units
-
 #ifndef BOOST_UNITS_DOXYGEN
 
 namespace mpl {
 
 /// INTERNAL ONLY
-template<>
-struct plus_impl<boost::units::scale_dim_tag, boost::units::scale_dim_tag>
-{
- template<class T0, class T1>
- struct apply
- {
- typedef boost::units::scale_list_dim<
- boost::units::scale<
- (T0::base),
- typename mpl::plus<typename T0::exponent, typename T1::exponent>::type
- >
- > type;
- };
-};
-
-/// INTERNAL ONLY
-template<>
-struct negate_impl<boost::units::scale_dim_tag>
-{
- template<class T0>
- struct apply
- {
- typedef boost::units::scale_list_dim<
- boost::units::scale<
- (T0::base),
- typename mpl::negate<typename T0::exponent>::type
- >
- > type;
- };
-};
-
-/// INTERNAL ONLY
-template<>
-struct times_impl<boost::units::scale_dim_tag, boost::units::detail::static_rational_tag>
-{
- template<class T0, class T1>
- struct apply
- {
- typedef boost::units::scale_list_dim<
- boost::units::scale<
- (T0::base),
- typename mpl::times<typename T0::exponent, T1>::type
- >
- > type;
- };
-};
-
-/// INTERNAL ONLY
 template<class Tag>
 struct less_impl<boost::units::scaled_base_unit_tag, Tag>
 {

Modified: sandbox/units/boost/units/systems/other/angstrom.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/angstrom.hpp (original)
+++ sandbox/units/boost/units/systems/other/angstrom.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/base_units/meter.hpp>
 

Modified: sandbox/units/boost/units/systems/other/apothecaries_dram.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/apothecaries_dram.hpp (original)
+++ sandbox/units/boost/units/systems/other/apothecaries_dram.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/grain.hpp>
 

Modified: sandbox/units/boost/units/systems/other/apothecaries_ounce.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/apothecaries_ounce.hpp (original)
+++ sandbox/units/boost/units/systems/other/apothecaries_ounce.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/apothecaries_dram.hpp>
 

Modified: sandbox/units/boost/units/systems/other/apothecaries_pound.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/apothecaries_pound.hpp (original)
+++ sandbox/units/boost/units/systems/other/apothecaries_pound.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/apothecaries_ounce.hpp>
 

Modified: sandbox/units/boost/units/systems/other/apothecaries_scruple.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/apothecaries_scruple.hpp (original)
+++ sandbox/units/boost/units/systems/other/apothecaries_scruple.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/grain.hpp>
 

Modified: sandbox/units/boost/units/systems/other/avoirdupois_ounce.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/avoirdupois_ounce.hpp (original)
+++ sandbox/units/boost/units/systems/other/avoirdupois_ounce.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/avoirdupois_dram.hpp>
 

Modified: sandbox/units/boost/units/systems/other/avoirdupois_pound.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/avoirdupois_pound.hpp (original)
+++ sandbox/units/boost/units/systems/other/avoirdupois_pound.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/avoirdupois_dram.hpp>
 

Modified: sandbox/units/boost/units/systems/other/bushel.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/bushel.hpp (original)
+++ sandbox/units/boost/units/systems/other/bushel.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/dry_pint.hpp>
 

Modified: sandbox/units/boost/units/systems/other/day.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/day.hpp (original)
+++ sandbox/units/boost/units/systems/other/day.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/systems/base_units/hour.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/other/dry_quart.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/dry_quart.hpp (original)
+++ sandbox/units/boost/units/systems/other/dry_quart.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/dry_pint.hpp>
 

Modified: sandbox/units/boost/units/systems/other/fermi.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/fermi.hpp (original)
+++ sandbox/units/boost/units/systems/other/fermi.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/systems/base_units/meter.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/other/fluid_dram.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/fluid_dram.hpp (original)
+++ sandbox/units/boost/units/systems/other/fluid_dram.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/minim.hpp>
 

Modified: sandbox/units/boost/units/systems/other/fluid_ounce.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/fluid_ounce.hpp (original)
+++ sandbox/units/boost/units/systems/other/fluid_ounce.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/fluid_dram.hpp>
 

Modified: sandbox/units/boost/units/systems/other/gallon.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/gallon.hpp (original)
+++ sandbox/units/boost/units/systems/other/gallon.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/fluid_dram.hpp>
 

Modified: sandbox/units/boost/units/systems/other/gill.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/gill.hpp (original)
+++ sandbox/units/boost/units/systems/other/gill.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/fluid_dram.hpp>
 

Modified: sandbox/units/boost/units/systems/other/hour.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/hour.hpp (original)
+++ sandbox/units/boost/units/systems/other/hour.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/base_units/second.hpp>
 

Modified: sandbox/units/boost/units/systems/other/liquid_pint.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/liquid_pint.hpp (original)
+++ sandbox/units/boost/units/systems/other/liquid_pint.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/fluid_dram.hpp>
 

Modified: sandbox/units/boost/units/systems/other/liquid_quart.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/liquid_quart.hpp (original)
+++ sandbox/units/boost/units/systems/other/liquid_quart.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/fluid_dram.hpp>
 

Modified: sandbox/units/boost/units/systems/other/micron.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/micron.hpp (original)
+++ sandbox/units/boost/units/systems/other/micron.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/systems/base_units/meter.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/other/minute.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/minute.hpp (original)
+++ sandbox/units/boost/units/systems/other/minute.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/base_units/second.hpp>
 

Modified: sandbox/units/boost/units/systems/other/peck.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/peck.hpp (original)
+++ sandbox/units/boost/units/systems/other/peck.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/dry_pint.hpp>
 

Modified: sandbox/units/boost/units/systems/other/pennyweight.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/pennyweight.hpp (original)
+++ sandbox/units/boost/units/systems/other/pennyweight.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/grain.hpp>
 

Modified: sandbox/units/boost/units/systems/other/short_hundredweight.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/short_hundredweight.hpp (original)
+++ sandbox/units/boost/units/systems/other/short_hundredweight.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/avoirdupois_pound.hpp>
 

Modified: sandbox/units/boost/units/systems/other/short_ton.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/short_ton.hpp (original)
+++ sandbox/units/boost/units/systems/other/short_ton.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/other/avoirdupois_pound.hpp>
 

Modified: sandbox/units/boost/units/systems/other/ton.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/ton.hpp (original)
+++ sandbox/units/boost/units/systems/other/ton.hpp 2008-05-14 00:41:34 EDT (Wed, 14 May 2008)
@@ -13,6 +13,7 @@
 
 #include <boost/units/scaled_base_unit.hpp>
 #include <boost/units/static_rational.hpp>
+#include <boost/units/scale.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/systems/base_units/kilogram.hpp>
 


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