|
Boost-Commit : |
From: steven_at_[hidden]
Date: 2008-04-30 22:56:48
Author: steven_watanabe
Date: 2008-04-30 22:56:47 EDT (Wed, 30 Apr 2008)
New Revision: 44965
URL: http://svn.boost.org/trac/boost/changeset/44965
Log:
Fixed most of remaining inspect problems
Added:
sandbox/units/libs/units/test/fail_quantity_scalar_sub.cpp
- copied, changed from r44963, /sandbox/units/libs/units/test/fail_quantity_scalar_subtract.cpp
sandbox/units/libs/units/test/fail_quantity_sub_assign.cpp
- copied, changed from r44963, /sandbox/units/libs/units/test/fail_quantity_subtract_assign.cpp
sandbox/units/libs/units/test/fail_scalar_quantity_sub.cpp
- copied, changed from r44963, /sandbox/units/libs/units/test/fail_scalar_quantity_subtract.cpp
Removed:
sandbox/units/libs/units/test/fail_quantity_scalar_subtract.cpp
sandbox/units/libs/units/test/fail_quantity_subtract_assign.cpp
sandbox/units/libs/units/test/fail_scalar_quantity_subtract.cpp
Text files modified:
sandbox/units/boost/units/quantity.hpp | 10 +++++-----
sandbox/units/libs/units/example/measurement.hpp | 2 +-
sandbox/units/libs/units/test/Jamfile.v2 | 8 ++++----
sandbox/units/libs/units/test/fail_quantity_scalar_sub.cpp | 2 +-
sandbox/units/libs/units/test/fail_quantity_sub_assign.cpp | 2 +-
sandbox/units/libs/units/test/fail_scalar_quantity_sub.cpp | 2 +-
sandbox/units/libs/units/test/test_cmath.cpp | 2 +-
sandbox/units/libs/units/test_headers/test.cpp | 8 ++++++++
8 files changed, 22 insertions(+), 14 deletions(-)
Modified: sandbox/units/boost/units/quantity.hpp
==============================================================================
--- sandbox/units/boost/units/quantity.hpp (original)
+++ sandbox/units/boost/units/quantity.hpp 2008-04-30 22:56:47 EDT (Wed, 30 Apr 2008)
@@ -69,7 +69,7 @@
template<class T, class U>
struct disable_if_is_same
{
- typedef void type;
+ typedef void type;
};
template<class T>
@@ -164,7 +164,7 @@
typename is_implicitly_convertible<Unit2,Unit>::type,
detail::is_non_narrowing_conversion<YY, Y>
>,
- typename detail::disable_if_is_same<Unit, Unit2>::type
+ typename detail::disable_if_is_same<Unit, Unit2>::type
>::type* = 0)
: val_(conversion_helper<quantity<Unit2,YY>,this_type>::convert(source).value())
{
@@ -180,7 +180,7 @@
typename is_implicitly_convertible<Unit2,Unit>::type,
detail::is_non_narrowing_conversion<YY, Y>
>,
- typename detail::disable_if_is_same<Unit, Unit2>::type
+ typename detail::disable_if_is_same<Unit, Unit2>::type
>::type* = 0)
: val_(conversion_helper<quantity<Unit2,YY>,this_type>::convert(source).value())
{
@@ -355,7 +355,7 @@
template<class System2, class Y2>
quantity(const quantity<unit<dimensionless_type, System2>,Y2>& source,
typename boost::enable_if<detail::is_non_narrowing_conversion<Y2, Y>,
- typename detail::disable_if_is_same<System, System2>::type>::type* = 0,
+ typename detail::disable_if_is_same<System, System2>::type>::type* = 0,
typename boost::enable_if<detail::is_dimensionless_system<System2> >::type* = 0) :
val_(source.value())
{
@@ -366,7 +366,7 @@
template<class System2, class Y2>
explicit quantity(const quantity<unit<dimensionless_type, System2>,Y2>& source,
typename boost::disable_if<detail::is_non_narrowing_conversion<Y2, Y>,
- typename detail::disable_if_is_same<System, System2>::type>::type* = 0,
+ typename detail::disable_if_is_same<System, System2>::type>::type* = 0,
typename boost::enable_if<detail::is_dimensionless_system<System2> >::type* = 0) :
val_(static_cast<Y>(source.value()))
{
Modified: sandbox/units/libs/units/example/measurement.hpp
==============================================================================
--- sandbox/units/libs/units/example/measurement.hpp (original)
+++ sandbox/units/libs/units/example/measurement.hpp 2008-04-30 22:56:47 EDT (Wed, 30 Apr 2008)
@@ -23,7 +23,7 @@
namespace units {
-namespace sqr_namespace {
+namespace sqr_namespace /**/ {
template<class Y>
Y sqr(Y val)
Modified: sandbox/units/libs/units/test/Jamfile.v2
==============================================================================
--- sandbox/units/libs/units/test/Jamfile.v2 (original)
+++ sandbox/units/libs/units/test/Jamfile.v2 2008-04-30 22:56:47 EDT (Wed, 30 Apr 2008)
@@ -1,6 +1,6 @@
# Jamfile.v2
#
-# Copyright (c) 2007
+# Copyright (c) 2007-2008
# Steven Watanabe
#
# Distributed under the Boost Software License, Version 1.0. (See
@@ -37,13 +37,13 @@
[ compile-fail fail_quantity_add.cpp : : ]
[ compile-fail fail_quantity_subtract.cpp : : ]
[ compile-fail fail_quantity_add_assign.cpp : : ]
- [ compile-fail fail_quantity_subtract_assign.cpp : : ]
+ [ compile-fail fail_quantity_sub_assign.cpp : : ]
[ compile-fail fail_quantity_scalar_add.cpp : : ]
- [ compile-fail fail_quantity_scalar_subtract.cpp : : ]
+ [ compile-fail fail_quantity_scalar_sub.cpp : : ]
[ compile-fail fail_quantity_unit_add.cpp : : ]
[ compile-fail fail_quantity_unit_subtract.cpp : : ]
[ compile-fail fail_scalar_quantity_add.cpp : : ]
- [ compile-fail fail_scalar_quantity_subtract.cpp : : ]
+ [ compile-fail fail_scalar_quantity_sub.cpp : : ]
[ compile-fail fail_unit_quantity_add.cpp : : ]
[ compile-fail fail_unit_quantity_subtract.cpp : : ]
[ compile-fail fail_adl_detail.cpp : : ]
Copied: sandbox/units/libs/units/test/fail_quantity_scalar_sub.cpp (from r44963, /sandbox/units/libs/units/test/fail_quantity_scalar_subtract.cpp)
==============================================================================
--- /sandbox/units/libs/units/test/fail_quantity_scalar_subtract.cpp (original)
+++ sandbox/units/libs/units/test/fail_quantity_scalar_sub.cpp 2008-04-30 22:56:47 EDT (Wed, 30 Apr 2008)
@@ -11,7 +11,7 @@
/**
\file
-\brief fail_quantity_scalar_subtract.cpp
+\brief fail_quantity_scalar_sub.cpp
\detailed
Test subtraction of quantity and scalar.
Deleted: sandbox/units/libs/units/test/fail_quantity_scalar_subtract.cpp
==============================================================================
--- sandbox/units/libs/units/test/fail_quantity_scalar_subtract.cpp 2008-04-30 22:56:47 EDT (Wed, 30 Apr 2008)
+++ (empty file)
@@ -1,35 +0,0 @@
-// mcs::units - A C++ library for zero-overhead dimensional analysis and
-// unit/quantity manipulation and conversion
-//
-// Copyright (C) 2003-2007 Matthias Christian Schabel
-// Copyright (C) 2007 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 fail_quantity_scalar_subtract.cpp
-
-\detailed
-Test subtraction of quantity and scalar.
-
-Output:
-_at_verbatim
-_at_endverbatim
-**/
-
-#include <boost/units/quantity.hpp>
-#include <boost/units/systems/si.hpp>
-
-namespace bu = boost::units;
-
-int main(int argc,char *argv[])
-{
-
- 2.0 * bu::SI::meters - 2.0;
-
- return 0;
-}
Copied: sandbox/units/libs/units/test/fail_quantity_sub_assign.cpp (from r44963, /sandbox/units/libs/units/test/fail_quantity_subtract_assign.cpp)
==============================================================================
--- /sandbox/units/libs/units/test/fail_quantity_subtract_assign.cpp (original)
+++ sandbox/units/libs/units/test/fail_quantity_sub_assign.cpp 2008-04-30 22:56:47 EDT (Wed, 30 Apr 2008)
@@ -11,7 +11,7 @@
/**
\file
-\brief fail_quantity_subtract_assign.cpp
+\brief fail_quantity_sub_assign.cpp
\detailed
Test -= of quantity from different dimensions.
Deleted: sandbox/units/libs/units/test/fail_quantity_subtract_assign.cpp
==============================================================================
--- sandbox/units/libs/units/test/fail_quantity_subtract_assign.cpp 2008-04-30 22:56:47 EDT (Wed, 30 Apr 2008)
+++ (empty file)
@@ -1,36 +0,0 @@
-// mcs::units - A C++ library for zero-overhead dimensional analysis and
-// unit/quantity manipulation and conversion
-//
-// Copyright (C) 2003-2007 Matthias Christian Schabel
-// Copyright (C) 2007 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 fail_quantity_subtract_assign.cpp
-
-\detailed
-Test -= of quantity from different dimensions.
-
-Output:
-_at_verbatim
-_at_endverbatim
-**/
-
-#include <boost/units/quantity.hpp>
-#include <boost/units/systems/si.hpp>
-
-namespace bu = boost::units;
-
-int main(int,char *[])
-{
-
- bu::quantity<bu::SI::length> T1;
- T1 -= 2.0 * bu::SI::seconds;
-
- return 0;
-}
Copied: sandbox/units/libs/units/test/fail_scalar_quantity_sub.cpp (from r44963, /sandbox/units/libs/units/test/fail_scalar_quantity_subtract.cpp)
==============================================================================
--- /sandbox/units/libs/units/test/fail_scalar_quantity_subtract.cpp (original)
+++ sandbox/units/libs/units/test/fail_scalar_quantity_sub.cpp 2008-04-30 22:56:47 EDT (Wed, 30 Apr 2008)
@@ -11,7 +11,7 @@
/**
\file
-\brief fail_scalar_quantity_subtract.cpp
+\brief fail_scalar_quantity_sub.cpp
\detailed
Test subtraction of scalar and quantity.
Deleted: sandbox/units/libs/units/test/fail_scalar_quantity_subtract.cpp
==============================================================================
--- sandbox/units/libs/units/test/fail_scalar_quantity_subtract.cpp 2008-04-30 22:56:47 EDT (Wed, 30 Apr 2008)
+++ (empty file)
@@ -1,35 +0,0 @@
-// mcs::units - A C++ library for zero-overhead dimensional analysis and
-// unit/quantity manipulation and conversion
-//
-// Copyright (C) 2003-2007 Matthias Christian Schabel
-// Copyright (C) 2007 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 fail_scalar_quantity_subtract.cpp
-
-\detailed
-Test subtraction of scalar and quantity.
-
-Output:
-_at_verbatim
-_at_endverbatim
-**/
-
-#include <boost/units/quantity.hpp>
-#include <boost/units/systems/si.hpp>
-
-namespace bu = boost::units;
-
-int main(int argc,char *argv[])
-{
-
- 2.0 - 2.0 * bu::SI::meters;
-
- return 0;
-}
Modified: sandbox/units/libs/units/test/test_cmath.cpp
==============================================================================
--- sandbox/units/libs/units/test/test_cmath.cpp (original)
+++ sandbox/units/libs/units/test/test_cmath.cpp 2008-04-30 22:56:47 EDT (Wed, 30 Apr 2008)
@@ -155,7 +155,7 @@
const bu::quantity<bu::dimensionless> E8((bu::exp)(E7));
- BOOST_CHECK(std::abs(E8 - std::exp(1.0)) < .000001);
+ BOOST_CHECK(std::abs(E8 - std::exp(1.0)) < .000001);
BOOST_CHECK(bu::log(E8) == E7);
const bu::quantity<bu::dimensionless> E9(100.0);
Modified: sandbox/units/libs/units/test_headers/test.cpp
==============================================================================
--- sandbox/units/libs/units/test_headers/test.cpp (original)
+++ sandbox/units/libs/units/test_headers/test.cpp 2008-04-30 22:56:47 EDT (Wed, 30 Apr 2008)
@@ -1,3 +1,11 @@
+// test.cpp
+//
+// 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)
#define BOOST_UNITS_STRINGIZE_IMPL(x) #x
#define BOOST_UNITS_STRINGIZE(x) BOOST_UNITS_STRINGIZE_IMPL(x)
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