Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2007-08-22 17:30:56


Author: steven_watanabe
Date: 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
New Revision: 38858
URL: http://svn.boost.org/trac/boost/changeset/38858

Log:
Fixed #includes
Added:
   sandbox/units/libs/units/test_headers/
   sandbox/units/libs/units/test_headers/Jamfile.v2 (contents, props changed)
   sandbox/units/libs/units/test_headers/test.cpp (contents, props changed)
Text files modified:
   sandbox/units/boost/units/detail/dim_impl.hpp | 2
   sandbox/units/boost/units/detail/dimension_impl.hpp | 69 --------------------------------
   sandbox/units/boost/units/detail/heterogeneous_conversion.hpp | 1
   sandbox/units/boost/units/detail/linear_algebra.hpp | 5 +
   sandbox/units/boost/units/detail/sort.hpp | 2
   sandbox/units/boost/units/dimension_list.hpp | 83 ++++++++++++++++++++++++++++++++++++++++
   sandbox/units/boost/units/dimensionless_type.hpp | 8 +++
   sandbox/units/boost/units/is_dimensionless.hpp | 1
   sandbox/units/boost/units/is_quantity.hpp | 1
   sandbox/units/boost/units/is_unit.hpp | 1
   sandbox/units/boost/units/systems/angle/revolutions.hpp | 2
   sandbox/units/boost/units/systems/constants.hpp | 2
   sandbox/units/boost/units/systems/physical_dimensions/action.hpp | 1
   sandbox/units/boost/units/systems/si/capacitance.hpp | 1
   sandbox/units/boost/units/systems/si/catalytic_activity.hpp | 1
   sandbox/units/boost/units/systems/si/codata/typedefs.hpp | 1
   sandbox/units/boost/units/systems/si/codata/universal_constants.hpp | 1
   sandbox/units/boost/units/systems/si/conductance.hpp | 1
   sandbox/units/boost/units/systems/si/conductivity.hpp | 1
   sandbox/units/boost/units/systems/si/electric_charge.hpp | 1
   sandbox/units/boost/units/systems/si/electric_potential.hpp | 1
   sandbox/units/boost/units/systems/si/impedance.hpp | 1
   sandbox/units/boost/units/systems/si/inductance.hpp | 1
   sandbox/units/boost/units/systems/si/magnetic_field_intensity.hpp | 1
   sandbox/units/boost/units/systems/si/magnetic_flux.hpp | 1
   sandbox/units/boost/units/systems/si/magnetic_flux_density.hpp | 1
   sandbox/units/boost/units/systems/si/non_si_units.hpp | 2
   sandbox/units/boost/units/systems/si/permeability.hpp | 1
   sandbox/units/boost/units/systems/si/permittivity.hpp | 1
   sandbox/units/boost/units/systems/si/prefixes.hpp | 2
   sandbox/units/boost/units/systems/si/reluctance.hpp | 1
   sandbox/units/boost/units/systems/si/resistance.hpp | 1
   sandbox/units/boost/units/systems/si/resistivity.hpp | 1
   sandbox/units/boost/units/systems/temperature/fahrenheit.hpp | 1
   34 files changed, 130 insertions(+), 71 deletions(-)

Modified: sandbox/units/boost/units/detail/dim_impl.hpp
==============================================================================
--- sandbox/units/boost/units/detail/dim_impl.hpp (original)
+++ sandbox/units/boost/units/detail/dim_impl.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -72,7 +72,7 @@
 struct is_empty_dim;
 
 template<typename T>
-struct is_empty_dim< dim<T, static_rational<0> > > :
+struct is_empty_dim< dim<T, static_rational<0, 1> > > :
     mpl::true_
 { };
 

Modified: sandbox/units/boost/units/detail/dimension_impl.hpp
==============================================================================
--- sandbox/units/boost/units/detail/dimension_impl.hpp (original)
+++ sandbox/units/boost/units/detail/dimension_impl.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -22,6 +22,7 @@
 
 #include <boost/units/config.hpp>
 #include <boost/units/dimension_list.hpp>
+#include <boost/units/dimensionless_type.hpp>
 #include <boost/units/static_rational.hpp>
 #include <boost/units/units_fwd.hpp>
 #include <boost/units/detail/push_front_if.hpp>
@@ -358,74 +359,6 @@
 
 } // namespace units
 
-namespace mpl {
-
-template<>
-struct size_impl<units::detail::dimension_list_tag>
-{
- template<class L> struct apply : public L::size { };
-};
-
-template<>
-struct begin_impl<units::detail::dimension_list_tag>
-{
- template<class L>
- struct apply
- {
- typedef L type;
- };
-};
-
-template<>
-struct end_impl<units::detail::dimension_list_tag>
-{
- template<class L>
- struct apply
- {
- typedef units::dimensionless_type type;
- };
-};
-
-template<>
-struct push_front_impl<units::detail::dimension_list_tag>
-{
- template<class L, class T>
- struct apply
- {
- typedef units::dimension_list<T, L> type;
- };
-};
-
-template<>
-struct pop_front_impl<units::detail::dimension_list_tag>
-{
- template<class L>
- struct apply
- {
- typedef typename L::next type;
- };
-};
-
-template<>
-struct front_impl<units::detail::dimension_list_tag>
-{
- template<class L>
- struct apply
- {
- typedef typename L::item type;
- };
-};
-
-template<class Item, class Next>
-struct deref<units::dimension_list<Item, Next> >
-{
- typedef Item type;
-};
-
-template<> struct deref<units::dimensionless_type> { };
-
-} // namespace mpl
-
 } // namespace boost
 
 #endif // BOOST_UNITS_DIMENSION_IMPL_HPP

Modified: sandbox/units/boost/units/detail/heterogeneous_conversion.hpp
==============================================================================
--- sandbox/units/boost/units/detail/heterogeneous_conversion.hpp (original)
+++ sandbox/units/boost/units/detail/heterogeneous_conversion.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -21,6 +21,7 @@
 #include <boost/mpl/print.hpp>
 
 #include <boost/units/static_rational.hpp>
+#include <boost/units/homogeneous_system.hpp>
 #include <boost/units/detail/linear_algebra.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/detail/linear_algebra.hpp
==============================================================================
--- sandbox/units/boost/units/detail/linear_algebra.hpp (original)
+++ sandbox/units/boost/units/detail/linear_algebra.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -20,7 +20,6 @@
 #include <boost/mpl/size.hpp>
 #include <boost/mpl/next.hpp>
 #include <boost/mpl/arithmetic.hpp>
-#include <boost/mpl/sort.hpp>
 #include <boost/mpl/front_inserter.hpp>
 #include <boost/mpl/set.hpp>
 #include <boost/mpl/insert.hpp>
@@ -31,6 +30,10 @@
 #include <boost/mpl/front.hpp>
 #include <boost/mpl/and.hpp>
 
+#include <boost/units/dim.hpp>
+#include <boost/units/dimension_list.hpp>
+#include <boost/units/dimensionless_type.hpp>
+#include <boost/units/static_rational.hpp>
 #include <boost/units/detail/sort.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/detail/sort.hpp
==============================================================================
--- sandbox/units/boost/units/detail/sort.hpp (original)
+++ sandbox/units/boost/units/detail/sort.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -15,6 +15,8 @@
 #include <boost/mpl/begin.hpp>
 #include <boost/mpl/next.hpp>
 #include <boost/mpl/deref.hpp>
+#include <boost/mpl/push_front.hpp>
+#include <boost/mpl/less.hpp>
 
 #include <boost/units/dimension_list.hpp>
 #include <boost/units/dimensionless_type.hpp>

Modified: sandbox/units/boost/units/dimension_list.hpp
==============================================================================
--- sandbox/units/boost/units/dimension_list.hpp (original)
+++ sandbox/units/boost/units/dimension_list.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -12,6 +12,12 @@
 #define BOOST_UNITS_DIMENSION_LIST_HPP
 
 #include <boost/mpl/next.hpp>
+#include <boost/mpl/deref.hpp>
+#include <boost/mpl/push_front_fwd.hpp>
+#include <boost/mpl/pop_front_fwd.hpp>
+#include <boost/mpl/size_fwd.hpp>
+#include <boost/mpl/begin_end_fwd.hpp>
+#include <boost/mpl/front_fwd.hpp>
 
 #include <boost/units/config.hpp>
 
@@ -19,6 +25,8 @@
 
 namespace units {
 
+struct dimensionless_type;
+
 namespace detail {
 
 struct dimension_list_tag { };
@@ -37,6 +45,79 @@
 
 } // namespace units
 
+namespace mpl {
+
+// INTERNAL ONLY
+template<>
+struct size_impl<units::detail::dimension_list_tag>
+{
+ template<class L> struct apply : public L::size { };
+};
+
+// INTERNAL ONLY
+template<>
+struct begin_impl<units::detail::dimension_list_tag>
+{
+ template<class L>
+ struct apply
+ {
+ typedef L type;
+ };
+};
+
+// INTERNAL ONLY
+template<>
+struct end_impl<units::detail::dimension_list_tag>
+{
+ template<class L>
+ struct apply
+ {
+ typedef units::dimensionless_type type;
+ };
+};
+
+// INTERNAL ONLY
+template<>
+struct push_front_impl<units::detail::dimension_list_tag>
+{
+ template<class L, class T>
+ struct apply
+ {
+ typedef units::dimension_list<T, L> type;
+ };
+};
+
+// INTERNAL ONLY
+template<>
+struct pop_front_impl<units::detail::dimension_list_tag>
+{
+ template<class L>
+ struct apply
+ {
+ typedef typename L::next type;
+ };
+};
+
+// INTERNAL ONLY
+template<>
+struct front_impl<units::detail::dimension_list_tag>
+{
+ template<class L>
+ struct apply
+ {
+ typedef typename L::item type;
+ };
+};
+
+// INTERNAL ONLY
+template<class Item, class Next>
+struct deref<units::dimension_list<Item, Next> >
+{
+ typedef Item type;
+};
+
+} // namespace mpl
+
 } // namespace boost
 
 #if BOOST_UNITS_HAS_BOOST_TYPEOF
@@ -47,4 +128,6 @@
 
 #endif
 
+#include <boost/units/dimensionless_type.hpp>
+
 #endif // BOOST_UNITS_DIMENSION_LIST_HPP

Modified: sandbox/units/boost/units/dimensionless_type.hpp
==============================================================================
--- sandbox/units/boost/units/dimensionless_type.hpp (original)
+++ sandbox/units/boost/units/dimensionless_type.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -12,6 +12,7 @@
 #define BOOST_UNITS_DIMENSIONLESS_TYPE_HPP
 
 #include <boost/mpl/long.hpp>
+#include <boost/mpl/deref.hpp>
 
 #include <boost/units/config.hpp>
 #include <boost/units/dimension_list.hpp>
@@ -30,6 +31,13 @@
 
 } // namespace units
 
+namespace mpl {
+
+// INTERNAL ONLY
+template<> struct deref<units::dimensionless_type> { };
+
+} // namespace mpl
+
 } // namespace boost
 
 #if BOOST_UNITS_HAS_BOOST_TYPEOF

Modified: sandbox/units/boost/units/is_dimensionless.hpp
==============================================================================
--- sandbox/units/boost/units/is_dimensionless.hpp (original)
+++ sandbox/units/boost/units/is_dimensionless.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_IS_DIMENSIONLESS_HPP
 #define BOOST_UNITS_IS_DIMENSIONLESS_HPP
 
+#include <boost/mpl/bool.hpp>
 #include <boost/units/units_fwd.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/is_quantity.hpp
==============================================================================
--- sandbox/units/boost/units/is_quantity.hpp (original)
+++ sandbox/units/boost/units/is_quantity.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_IS_QUANTITY_HPP
 #define BOOST_UNITS_IS_QUANTITY_HPP
 
+#include <boost/mpl/bool.hpp>
 #include <boost/units/units_fwd.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/is_unit.hpp
==============================================================================
--- sandbox/units/boost/units/is_unit.hpp (original)
+++ sandbox/units/boost/units/is_unit.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_IS_UNIT_HPP
 #define BOOST_UNITS_IS_UNIT_HPP
 
+#include <boost/mpl/bool.hpp>
 #include <boost/units/units_fwd.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/angle/revolutions.hpp
==============================================================================
--- sandbox/units/boost/units/systems/angle/revolutions.hpp (original)
+++ sandbox/units/boost/units/systems/angle/revolutions.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -32,7 +32,7 @@
 typedef unit<plane_angle_dimension,system> plane_angle; ///< angle revolution unit constant
 
 BOOST_UNITS_STATIC_CONSTANT(revolution,plane_angle);
-BOOST_UNITS_STATIC_CONSTANT(revolution,plane_angle);
+BOOST_UNITS_STATIC_CONSTANT(revolutions,plane_angle);
 
 } // namespace revolution
 

Modified: sandbox/units/boost/units/systems/constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/constants.hpp (original)
+++ sandbox/units/boost/units/systems/constants.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -18,6 +18,8 @@
 #include <boost/io/ios_state.hpp>
 
 #include <boost/units/static_constant.hpp>
+#include <boost/units/units_fwd.hpp>
+#include <boost/units/operators.hpp>
 
 namespace boost {
 

Modified: sandbox/units/boost/units/systems/physical_dimensions/action.hpp
==============================================================================
--- sandbox/units/boost/units/systems/physical_dimensions/action.hpp (original)
+++ sandbox/units/boost/units/systems/physical_dimensions/action.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -13,6 +13,7 @@
 
 #include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/physical_dimensions/length.hpp>
+#include <boost/units/systems/physical_dimensions/mass.hpp>
 #include <boost/units/systems/physical_dimensions/time.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/capacitance.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/capacitance.hpp (original)
+++ sandbox/units/boost/units/systems/si/capacitance.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_CAPACITANCE_HPP
 #define BOOST_UNITS_SI_CAPACITANCE_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/catalytic_activity.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/catalytic_activity.hpp (original)
+++ sandbox/units/boost/units/systems/si/catalytic_activity.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_CATALYTIC_ACTIVITY_HPP
 #define BOOST_UNITS_SI_CATALYTIC_ACTIVITY_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/codata/typedefs.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/typedefs.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/typedefs.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -23,6 +23,7 @@
 #include <boost/units/systems/si/frequency.hpp>
 #include <boost/units/systems/si/magnetic_flux_density.hpp>
 #include <boost/units/systems/si/mass.hpp>
+#include <boost/units/systems/si/length.hpp>
 #include <boost/units/systems/si/power.hpp>
 #include <boost/units/systems/si/solid_angle.hpp>
 #include <boost/units/systems/si/temperature.hpp>

Modified: sandbox/units/boost/units/systems/si/codata/universal_constants.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/codata/universal_constants.hpp (original)
+++ sandbox/units/boost/units/systems/si/codata/universal_constants.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -25,6 +25,7 @@
 #include <boost/units/systems/si/time.hpp>
 #include <boost/units/systems/si/velocity.hpp>
 #include <boost/units/systems/si/volume.hpp>
+#include <boost/units/systems/si/codata/typedefs.hpp>
 
 /// \file
 /// CODATA recommended values of fundamental universal constants

Modified: sandbox/units/boost/units/systems/si/conductance.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/conductance.hpp (original)
+++ sandbox/units/boost/units/systems/si/conductance.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_CONDUCTANCE_HPP
 #define BOOST_UNITS_SI_CONDUCTANCE_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/conductivity.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/conductivity.hpp (original)
+++ sandbox/units/boost/units/systems/si/conductivity.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_CONDUCTIVITY_HPP
 #define BOOST_UNITS_SI_CONDUCTIVITY_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/electric_charge.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/electric_charge.hpp (original)
+++ sandbox/units/boost/units/systems/si/electric_charge.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_ELECTRIC_CHARGE_HPP
 #define BOOST_UNITS_SI_ELECTRIC_CHARGE_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/electric_potential.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/electric_potential.hpp (original)
+++ sandbox/units/boost/units/systems/si/electric_potential.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_ELECTRIC_POTENTIAL_HPP
 #define BOOST_UNITS_SI_ELECTRIC_POTENTIAL_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/impedance.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/impedance.hpp (original)
+++ sandbox/units/boost/units/systems/si/impedance.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_IMPEDANCE_HPP
 #define BOOST_UNITS_SI_IMPEDANCE_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/inductance.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/inductance.hpp (original)
+++ sandbox/units/boost/units/systems/si/inductance.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_INDUCTANCE_HPP
 #define BOOST_UNITS_SI_INDUCTANCE_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/magnetic_field_intensity.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/magnetic_field_intensity.hpp (original)
+++ sandbox/units/boost/units/systems/si/magnetic_field_intensity.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_MAGNETIC_FIELD_INTENSITY_HPP
 #define BOOST_UNITS_SI_MAGNETIC_FIELD_INTENSITY_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/magnetic_flux.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/magnetic_flux.hpp (original)
+++ sandbox/units/boost/units/systems/si/magnetic_flux.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_MAGNETIC_FLUX_HPP
 #define BOOST_UNITS_SI_MAGNETIC_FLUX_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/magnetic_flux_density.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/magnetic_flux_density.hpp (original)
+++ sandbox/units/boost/units/systems/si/magnetic_flux_density.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_MAGNETIC_FLUX_DENSITY_HPP
 #define BOOST_UNITS_SI_MAGNETIC_FLUX_DENSITY_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/non_si_units.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/non_si_units.hpp (original)
+++ sandbox/units/boost/units/systems/si/non_si_units.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,8 @@
 #ifndef BOOST_UNITS_NON_SI_CONSTANTS_HPP
 #define BOOST_UNITS_NON_SI_CONSTANTS_HPP
 
+#error "this file uses the wrong types"
+
 #include <boost/units/systems/si.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/permeability.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/permeability.hpp (original)
+++ sandbox/units/boost/units/systems/si/permeability.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_PERMEABILITY_HPP
 #define BOOST_UNITS_SI_PERMEABILITY_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/permittivity.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/permittivity.hpp (original)
+++ sandbox/units/boost/units/systems/si/permittivity.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_PERMITTIVITY_HPP
 #define BOOST_UNITS_SI_PERMITTIVITY_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/prefixes.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/prefixes.hpp (original)
+++ sandbox/units/boost/units/systems/si/prefixes.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,8 @@
 #ifndef BOOST_UNITS_SI_PREFIXES_HPP
 #define BOOST_UNITS_SI_PREFIXES_HPP
 
+#include <boost/units/static_constant.hpp>
+
 namespace boost {
 
 namespace units {

Modified: sandbox/units/boost/units/systems/si/reluctance.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/reluctance.hpp (original)
+++ sandbox/units/boost/units/systems/si/reluctance.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_RELUCTANCE_HPP
 #define BOOST_UNITS_SI_RELUCTANCE_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/resistance.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/resistance.hpp (original)
+++ sandbox/units/boost/units/systems/si/resistance.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_RESISTANCE_HPP
 #define BOOST_UNITS_SI_RESISTANCE_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/si/resistivity.hpp
==============================================================================
--- sandbox/units/boost/units/systems/si/resistivity.hpp (original)
+++ sandbox/units/boost/units/systems/si/resistivity.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -11,6 +11,7 @@
 #ifndef BOOST_UNITS_SI_RESISTIVITY_HPP
 #define BOOST_UNITS_SI_RESISTIVITY_HPP
 
+#include <boost/units/derived_dimension.hpp>
 #include <boost/units/systems/si/base.hpp>
 
 namespace boost {

Modified: sandbox/units/boost/units/systems/temperature/fahrenheit.hpp
==============================================================================
--- sandbox/units/boost/units/systems/temperature/fahrenheit.hpp (original)
+++ sandbox/units/boost/units/systems/temperature/fahrenheit.hpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -15,6 +15,7 @@
 
 #include <boost/units/absolute.hpp>
 #include <boost/units/io.hpp>
+#include <boost/units/make_system.hpp>
 #include <boost/units/static_constant.hpp>
 #include <boost/units/systems/base_units/fahrenheit.hpp>
 

Added: sandbox/units/libs/units/test_headers/Jamfile.v2
==============================================================================
--- (empty file)
+++ sandbox/units/libs/units/test_headers/Jamfile.v2 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -0,0 +1,34 @@
+# Jamfile.v2
+#
+# Copyright (c) 2007
+# Steven Watanabe
+#
+# Distributed under the Boost Software License, Version 1.0. (See
+# accomanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt
+
+import testing ;
+import path ;
+import regex ;
+
+project test :
+ requirements <include>$(BOOST_ROOT) <include>../../..
+;
+
+rule setup ( ) {
+
+ for local file in [ path.glob-tree ../../../boost/units : *.hpp ] {
+
+ result += [ compile test.cpp : <define>BOOST_UNITS_HEADER_NAME=$(file) : [ regex.replace [ path.relative-to ../../.. $(file) ] "/" "_" ] ] ;
+
+ }
+
+ return $(result) ;
+
+}
+
+import testing ;
+
+test-suite units_headers :
+ [ setup ]
+ ;

Added: sandbox/units/libs/units/test_headers/test.cpp
==============================================================================
--- (empty file)
+++ sandbox/units/libs/units/test_headers/test.cpp 2007-08-22 17:30:53 EDT (Wed, 22 Aug 2007)
@@ -0,0 +1,9 @@
+
+#define BOOST_UNITS_STRINGIZE_IMPL(x) #x
+#define BOOST_UNITS_STRINGIZE(x) BOOST_UNITS_STRINGIZE_IMPL(x)
+
+#define BOOST_UNITS_HEADER BOOST_UNITS_STRINGIZE(BOOST_UNITS_HEADER_NAME)
+
+#include BOOST_UNITS_HEADER
+
+int main() {}


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