Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-07-02 23:40:46


Author: steven_watanabe
Date: 2008-07-02 23:40:45 EDT (Wed, 02 Jul 2008)
New Revision: 47026
URL: http://svn.boost.org/trac/boost/changeset/47026

Log:
Try to isolate the sun 5.7 and 5.8 failures
Added:
   trunk/libs/units/test/test_reduce_unit.cpp (contents, props changed)
Text files modified:
   trunk/libs/units/test/Jamfile.v2 | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/libs/units/test/Jamfile.v2
==============================================================================
--- trunk/libs/units/test/Jamfile.v2 (original)
+++ trunk/libs/units/test/Jamfile.v2 2008-07-02 23:40:45 EDT (Wed, 02 Jul 2008)
@@ -32,6 +32,7 @@
     [ compile test_dimensionless_ice2.cpp : : ]
     [ compile test_mixed_value_types.cpp : : ]
     [ compile test_complicated_system.cpp : : ]
+ [ compile test_reduce_unit.cpp ]
     [ run test_dimensionless_quantity.cpp : : : : ]
     [ run test_implicit_conversion.cpp : : : : ]
     [ run test_quantity.cpp : : : : ]

Added: trunk/libs/units/test/test_reduce_unit.cpp
==============================================================================
--- (empty file)
+++ trunk/libs/units/test/test_reduce_unit.cpp 2008-07-02 23:40:45 EDT (Wed, 02 Jul 2008)
@@ -0,0 +1,30 @@
+// Boost.Units - A C++ library for zero-overhead dimensional analysis and
+// unit/quantity manipulation and conversion
+//
+// Copyright (C) 2003-2008 Matthias Christian Schabel
+// Copyright (C) 2007-2008 Steven Watanabe
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+/**
+\file
+
+\brief test_reduce_unit.cpp
+
+\detailed
+Test that reduce_unit works correctly by itself to try to isolate problems.
+
+Output:
+@verbatim
+@endverbatim
+**/
+
+#include <boost/units/reduce_unit.hpp>
+#include <boost/units/base_units/si/kelvin.hpp>
+
+#include <boost/mpl/assert.hpp>
+#include <boost/type_traits/is_same.hpp>
+
+BOOST_MPL_ASSERT((boost::is_same<boost::units::reduce_unit<boost::units::si::kelvin_base_unit::unit_type>::type, boost::units::si::kelvin_base_unit::unit_type>));


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