Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-06-20 00:37:33


Author: steven_watanabe
Date: 2008-06-20 00:37:32 EDT (Fri, 20 Jun 2008)
New Revision: 46545
URL: http://svn.boost.org/trac/boost/changeset/46545

Log:
Add to release branch
Added:
   branches/release/boost/units/
      - copied from r46525, /trunk/boost/units/
   branches/release/boost/units/absolute.hpp
      - copied unchanged from r46544, /trunk/boost/units/absolute.hpp
   branches/release/boost/units/base_dimension.hpp
      - copied unchanged from r46544, /trunk/boost/units/base_dimension.hpp
   branches/release/boost/units/base_unit.hpp
      - copied unchanged from r46544, /trunk/boost/units/base_unit.hpp
   branches/release/boost/units/base_units/
      - copied from r46544, /trunk/boost/units/base_units/
   branches/release/boost/units/cmath.hpp
      - copied, changed from r46544, /trunk/boost/units/cmath.hpp
   branches/release/boost/units/config.hpp
      - copied unchanged from r46544, /trunk/boost/units/config.hpp
   branches/release/boost/units/conversion.hpp
      - copied unchanged from r46544, /trunk/boost/units/conversion.hpp
   branches/release/boost/units/derived_dimension.hpp
      - copied unchanged from r46544, /trunk/boost/units/derived_dimension.hpp
   branches/release/boost/units/detail/
      - copied from r46544, /trunk/boost/units/detail/
   branches/release/boost/units/dim.hpp
      - copied unchanged from r46544, /trunk/boost/units/dim.hpp
   branches/release/boost/units/dimension.hpp
      - copied unchanged from r46544, /trunk/boost/units/dimension.hpp
   branches/release/boost/units/dimensionless_quantity.hpp
      - copied unchanged from r46544, /trunk/boost/units/dimensionless_quantity.hpp
   branches/release/boost/units/dimensionless_type.hpp
      - copied unchanged from r46544, /trunk/boost/units/dimensionless_type.hpp
   branches/release/boost/units/dimensionless_unit.hpp
      - copied unchanged from r46544, /trunk/boost/units/dimensionless_unit.hpp
   branches/release/boost/units/get_dimension.hpp
      - copied unchanged from r46544, /trunk/boost/units/get_dimension.hpp
   branches/release/boost/units/get_system.hpp
      - copied unchanged from r46544, /trunk/boost/units/get_system.hpp
   branches/release/boost/units/heterogeneous_system.hpp
      - copied unchanged from r46544, /trunk/boost/units/heterogeneous_system.hpp
   branches/release/boost/units/homogeneous_system.hpp
      - copied unchanged from r46544, /trunk/boost/units/homogeneous_system.hpp
   branches/release/boost/units/io.hpp
      - copied unchanged from r46544, /trunk/boost/units/io.hpp
   branches/release/boost/units/is_dim.hpp
      - copied unchanged from r46544, /trunk/boost/units/is_dim.hpp
   branches/release/boost/units/is_dimension_list.hpp
      - copied unchanged from r46544, /trunk/boost/units/is_dimension_list.hpp
   branches/release/boost/units/is_dimensionless.hpp
      - copied unchanged from r46544, /trunk/boost/units/is_dimensionless.hpp
   branches/release/boost/units/is_dimensionless_quantity.hpp
      - copied unchanged from r46544, /trunk/boost/units/is_dimensionless_quantity.hpp
   branches/release/boost/units/is_dimensionless_unit.hpp
      - copied unchanged from r46544, /trunk/boost/units/is_dimensionless_unit.hpp
   branches/release/boost/units/is_quantity.hpp
      - copied unchanged from r46544, /trunk/boost/units/is_quantity.hpp
   branches/release/boost/units/is_quantity_of_dimension.hpp
      - copied unchanged from r46544, /trunk/boost/units/is_quantity_of_dimension.hpp
   branches/release/boost/units/is_quantity_of_system.hpp
      - copied unchanged from r46544, /trunk/boost/units/is_quantity_of_system.hpp
   branches/release/boost/units/is_unit.hpp
      - copied unchanged from r46544, /trunk/boost/units/is_unit.hpp
   branches/release/boost/units/is_unit_of_dimension.hpp
      - copied unchanged from r46544, /trunk/boost/units/is_unit_of_dimension.hpp
   branches/release/boost/units/is_unit_of_system.hpp
      - copied unchanged from r46544, /trunk/boost/units/is_unit_of_system.hpp
   branches/release/boost/units/lambda.hpp
      - copied unchanged from r46544, /trunk/boost/units/lambda.hpp
   branches/release/boost/units/limits.hpp
      - copied unchanged from r46544, /trunk/boost/units/limits.hpp
   branches/release/boost/units/make_scaled_unit.hpp
      - copied unchanged from r46544, /trunk/boost/units/make_scaled_unit.hpp
   branches/release/boost/units/make_system.hpp
      - copied unchanged from r46544, /trunk/boost/units/make_system.hpp
   branches/release/boost/units/operators.hpp
      - copied unchanged from r46544, /trunk/boost/units/operators.hpp
   branches/release/boost/units/physical_dimensions/
      - copied from r46544, /trunk/boost/units/physical_dimensions/
   branches/release/boost/units/physical_dimensions.hpp
      - copied unchanged from r46544, /trunk/boost/units/physical_dimensions.hpp
   branches/release/boost/units/pow.hpp
      - copied unchanged from r46544, /trunk/boost/units/pow.hpp
   branches/release/boost/units/quantity.hpp
      - copied unchanged from r46544, /trunk/boost/units/quantity.hpp
   branches/release/boost/units/reduce_unit.hpp
      - copied unchanged from r46544, /trunk/boost/units/reduce_unit.hpp
   branches/release/boost/units/scale.hpp
      - copied unchanged from r46544, /trunk/boost/units/scale.hpp
   branches/release/boost/units/scaled_base_unit.hpp
      - copied unchanged from r46544, /trunk/boost/units/scaled_base_unit.hpp
   branches/release/boost/units/static_constant.hpp
      - copied unchanged from r46544, /trunk/boost/units/static_constant.hpp
   branches/release/boost/units/static_rational.hpp
      - copied unchanged from r46544, /trunk/boost/units/static_rational.hpp
   branches/release/boost/units/systems/
      - copied from r46544, /trunk/boost/units/systems/
   branches/release/boost/units/unit.hpp
      - copied unchanged from r46544, /trunk/boost/units/unit.hpp
   branches/release/boost/units/units_fwd.hpp
      - copied unchanged from r46544, /trunk/boost/units/units_fwd.hpp
   branches/release/libs/units/
      - copied from r46525, /trunk/libs/units/
   branches/release/libs/units/boost.css
      - copied unchanged from r46544, /trunk/libs/units/boost.css
   branches/release/libs/units/doc/
      - copied from r46544, /trunk/libs/units/doc/
   branches/release/libs/units/example/
      - copied from r46544, /trunk/libs/units/example/
   branches/release/libs/units/images/
      - copied from r46544, /trunk/libs/units/images/
   branches/release/libs/units/index.html
      - copied unchanged from r46544, /trunk/libs/units/index.html
   branches/release/libs/units/test/
      - copied from r46544, /trunk/libs/units/test/
   branches/release/libs/units/test_headers/
      - copied from r46544, /trunk/libs/units/test_headers/
   branches/release/libs/units/tutorial/
      - copied from r46544, /trunk/libs/units/tutorial/
Text files modified:
   branches/release/boost/units/cmath.hpp | 13 +++++++++----
   branches/release/doc/Jamfile.v2 | 2 ++
   branches/release/doc/src/boost.xml | 2 ++
   branches/release/libs/libraries.htm | 6 ++++++
   branches/release/libs/units/test/test_cmath.cpp | 5 +++++
   branches/release/status/Jamfile.v2 | 1 +
   6 files changed, 25 insertions(+), 4 deletions(-)

Copied: branches/release/boost/units/cmath.hpp (from r46544, /trunk/boost/units/cmath.hpp)
==============================================================================
--- /trunk/boost/units/cmath.hpp (original)
+++ branches/release/boost/units/cmath.hpp 2008-06-20 00:37:32 EDT (Fri, 20 Jun 2008)
@@ -24,8 +24,8 @@
 
 #include <boost/math/special_functions/fpclassify.hpp>
 #include <boost/math/special_functions/hypot.hpp>
-#include <boost/math/special_functions/next.hpp>
-#include <boost/math/special_functions/round.hpp>
+//#include <boost/math/special_functions/next.hpp>
+//#include <boost/math/special_functions/round.hpp>
 #include <boost/math/special_functions/sign.hpp>
 
 #include <boost/units/dimensionless_quantity.hpp>
@@ -349,6 +349,9 @@
 
 #endif
 
+// these are not in the release branch yet
+#if 0
+
 template<class Unit,class Y>
 inline
 quantity<Unit,Y> nextafter BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity<Unit,Y>& q1,
@@ -375,6 +378,8 @@
     return quantity_type::from_value(nextafter BOOST_PREVENT_MACRO_SUBSTITUTION (q1.value(),q2.value()));
 }
 
+#endif
+
 #if 0
 
 template<class Unit,class Y>
@@ -389,8 +394,6 @@
     return quantity_type::from_value(rint BOOST_PREVENT_MACRO_SUBSTITUTION (q.value()));
 }
 
-#endif
-
 template<class Unit,class Y>
 inline
 quantity<Unit,Y>
@@ -403,6 +406,8 @@
     return quantity_type::from_value(round BOOST_PREVENT_MACRO_SUBSTITUTION (q.value()));
 }
 
+#endif
+
 template<class Unit,class Y>
 inline
 int

Modified: branches/release/doc/Jamfile.v2
==============================================================================
--- branches/release/doc/Jamfile.v2 (original)
+++ branches/release/doc/Jamfile.v2 2008-06-20 00:37:32 EDT (Fri, 20 Jun 2008)
@@ -38,6 +38,7 @@
     <dependency>../libs/interprocess/doc//interprocess
     <dependency>../libs/intrusive/doc//autodoc.xml
     <dependency>../libs/intrusive/doc//intrusive
+ <dependency>../libs/units/doc//units
     <dependency>../libs/unordered/doc//unordered
     <dependency>../libs/asio/doc//asio
     <dependency>../libs/thread/doc//thread
@@ -56,6 +57,7 @@
     <implicit-dependency>../libs/mpi/doc//mpi
     <implicit-dependency>../libs/interprocess/doc//interprocess
     <implicit-dependency>../libs/intrusive/doc//intrusive
+ <implicit-dependency>../libs/units/doc//units
     <implicit-dependency>../libs/unordered/doc//unordered
     <implicit-dependency>../libs/thread/doc//thread
 

Modified: branches/release/doc/src/boost.xml
==============================================================================
--- branches/release/doc/src/boost.xml (original)
+++ branches/release/doc/src/boost.xml 2008-06-20 00:37:32 EDT (Fri, 20 Jun 2008)
@@ -721,6 +721,8 @@
      </libraryinfo>
    </library>
 
+ <xi:include href="units.xml"/>
+
    <xi:include href="unordered.xml"/>
 
    <library name="Utility" dirname="utility" html-only="1">

Modified: branches/release/libs/libraries.htm
==============================================================================
--- branches/release/libs/libraries.htm (original)
+++ branches/release/libs/libraries.htm 2008-06-20 00:37:32 EDT (Fri, 20 Jun 2008)
@@ -274,6 +274,9 @@
         Typeof operator emulation, from Arkadiy Vertleyb and Peder Holt.</li>
     <li>uBLAS - Basic linear algebra
     for dense, packed and sparse matrices, from Joerg Walter and Mathias Koch.</li>
+ <li>units -
+ Zero-overhead dimensional analysis and unit/quantity
+ manipulation and conversion, from Matthias Schabel and Steven Watanabe.</li>
     <li>utility - Class <b>noncopyable</b>
         plus <b>checked_delete()</b>, <b>checked_array_delete()</b>, <b>next(),</b>&nbsp;
       <b>prior()</b>
@@ -664,6 +667,9 @@
     <li>tribool - 3-state boolean type library, from Doug Gregor.</li>
     <li>typeof -
         Typeof operator emulation, from Arkadiy Vertleyb and Peder Holt.</li>
+ <li>units -
+ Zero-overhead dimensional analysis and unit/quantity
+ manipulation and conversion, from Matthias Schabel and Steven Watanabe.</li>
     <li>utility - Class <b>noncopyable</b>
         plus <b>checked_delete()</b>, <b>checked_array_delete()</b>, <b>next(),</b>&nbsp;
       <b>prior()</b>

Modified: branches/release/libs/units/test/test_cmath.cpp
==============================================================================
--- /trunk/libs/units/test/test_cmath.cpp (original)
+++ branches/release/libs/units/test/test_cmath.cpp 2008-06-20 00:37:32 EDT (Fri, 20 Jun 2008)
@@ -129,14 +129,19 @@
 
 #endif
 
+#if 0
+
     BOOST_CHECK((bu::nextafter)(E4,E5).value() == (boost::math::nextafter)(E4.value(),E5.value()));
     BOOST_CHECK((bu::nextafter)(E5,E4).value() == (boost::math::nextafter)(E5.value(),E4.value()));
 
     BOOST_CHECK((bu::nexttoward)(E4,E5).value() == (boost::math::nextafter)(E4.value(),E5.value()));
     BOOST_CHECK((bu::nexttoward)(E5,E4).value() == (boost::math::nextafter)(E5.value(),E4.value()));
 
+
     BOOST_CHECK((bu::round)(E4 - 0.00000000001 * bu::joules) == -3.0*bu::joules);
     BOOST_CHECK((bu::round)(E5 + 0.00000000001 * bu::joules) == 3.0*bu::joules);
+#endif
+
     BOOST_CHECK((bu::signbit)(E4) == 1);
     BOOST_CHECK((bu::signbit)(E5) == 0);
     BOOST_CHECK((bu::trunc)(E4) == -2.0*bu::joules);

Modified: branches/release/status/Jamfile.v2
==============================================================================
--- branches/release/status/Jamfile.v2 (original)
+++ branches/release/status/Jamfile.v2 2008-06-20 00:37:32 EDT (Fri, 20 Jun 2008)
@@ -87,6 +87,7 @@
 build-project ../libs/tuple/test ; # test-suite tuple
 build-project ../libs/type_traits/test ; # test-suite type_traits
 build-project ../libs/typeof/test ; # test-suite typeof
+build-project ../libs/units/test ; # test-suite units
 build-project ../libs/unordered/test/unordered ; # test-suite unordered
 build-project ../libs/unordered/test/exception ; # test-suite unordered-exception
 build-project ../libs/utility/enable_if/test ; # test-suite utility/enable_if


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