|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55028 - in sandbox/numeric_adaptor: boost/numeric_adaptor libs/numeric_adaptor/test
From: barend.gehrels_at_[hidden]
Date: 2009-07-19 12:42:21
Author: barendgehrels
Date: 2009-07-19 12:42:20 EDT (Sun, 19 Jul 2009)
New Revision: 55028
URL: http://svn.boost.org/trac/boost/changeset/55028
Log:
Cosmetic changes in comments/include guards
Changed value of the "heron"/double test
Text files modified:
sandbox/numeric_adaptor/boost/numeric_adaptor/cln_value_type.hpp | 8 ++++----
sandbox/numeric_adaptor/boost/numeric_adaptor/gmp_value_type.hpp | 9 +++++----
sandbox/numeric_adaptor/boost/numeric_adaptor/numeric_adaptor.hpp | 8 ++++----
sandbox/numeric_adaptor/libs/numeric_adaptor/test/test_heron.cpp | 4 +++-
4 files changed, 16 insertions(+), 13 deletions(-)
Modified: sandbox/numeric_adaptor/boost/numeric_adaptor/cln_value_type.hpp
==============================================================================
--- sandbox/numeric_adaptor/boost/numeric_adaptor/cln_value_type.hpp (original)
+++ sandbox/numeric_adaptor/boost/numeric_adaptor/cln_value_type.hpp 2009-07-19 12:42:20 EDT (Sun, 19 Jul 2009)
@@ -1,14 +1,14 @@
// Numeric Adaptor Library
//
-// Copyright Barend Gehrels 2009, Geodan, Amsterdam
// Copyright Bruno Lalande 2009
+// Copyright Barend Gehrels 2009, Geodan, Amsterdam
// Use, modification and distribution is subject to 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)
-#ifndef NUMERIC_ADAPTOR_CLN_VALUE_TYPE_HPP
-#define NUMERIC_ADAPTOR_CLN_VALUE_TYPE_HPP
+#ifndef BOOST_NUMERIC_ADAPTOR_CLN_VALUE_TYPE_HPP
+#define BOOST_NUMERIC_ADAPTOR_CLN_VALUE_TYPE_HPP
#include <cln/cln.h>
@@ -148,4 +148,4 @@
} // namespace boost
-#endif
+#endif // BOOST_NUMERIC_ADAPTOR_CLN_VALUE_TYPE_HPP
Modified: sandbox/numeric_adaptor/boost/numeric_adaptor/gmp_value_type.hpp
==============================================================================
--- sandbox/numeric_adaptor/boost/numeric_adaptor/gmp_value_type.hpp (original)
+++ sandbox/numeric_adaptor/boost/numeric_adaptor/gmp_value_type.hpp 2009-07-19 12:42:20 EDT (Sun, 19 Jul 2009)
@@ -1,14 +1,14 @@
// Numeric Adaptor Library
//
-// Copyright Barend Gehrels 2009, Geodan, Amsterdam
// Copyright Bruno Lalande 2009
+// Copyright Barend Gehrels 2009, Geodan, Amsterdam
// Use, modification and distribution is subject to 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)
-#ifndef NUMERIC_ADAPTOR_GMP_VALUE_TYPE_HPP
-#define NUMERIC_ADAPTOR_GMP_VALUE_TYPE_HPP
+#ifndef BOOST_NUMERIC_ADAPTOR_GMP_VALUE_TYPE_HPP
+#define BOOST_NUMERIC_ADAPTOR_GMP_VALUE_TYPE_HPP
#include <gmp.h>
@@ -175,4 +175,5 @@
} // namespace boost
-#endif
+#endif // BOOST_NUMERIC_ADAPTOR_GMP_VALUE_TYPE_HPP
+
Modified: sandbox/numeric_adaptor/boost/numeric_adaptor/numeric_adaptor.hpp
==============================================================================
--- sandbox/numeric_adaptor/boost/numeric_adaptor/numeric_adaptor.hpp (original)
+++ sandbox/numeric_adaptor/boost/numeric_adaptor/numeric_adaptor.hpp 2009-07-19 12:42:20 EDT (Sun, 19 Jul 2009)
@@ -1,14 +1,14 @@
// Numeric Adaptor Library
//
-// Copyright Barend Gehrels 2009, Geodan, Amsterdam
// Copyright Bruno Lalande 2009
+// Copyright Barend Gehrels 2009, Geodan, Amsterdam
// Use, modification and distribution is subject to 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)
-#ifndef NUMERIC_ADAPTOR_NUMERIC_ADAPTOR_HPP
-#define NUMERIC_ADAPTOR_NUMERIC_ADAPTOR_HPP
+#ifndef BOOST_NUMERIC_ADAPTOR_NUMERIC_ADAPTOR_HPP
+#define BOOST_NUMERIC_ADAPTOR_NUMERIC_ADAPTOR_HPP
#include <cmath>
@@ -51,4 +51,4 @@
} // namespace boost
-#endif
+#endif // BOOST_NUMERIC_ADAPTOR_NUMERIC_ADAPTOR_HPP
Modified: sandbox/numeric_adaptor/libs/numeric_adaptor/test/test_heron.cpp
==============================================================================
--- sandbox/numeric_adaptor/libs/numeric_adaptor/test/test_heron.cpp (original)
+++ sandbox/numeric_adaptor/libs/numeric_adaptor/test/test_heron.cpp 2009-07-19 12:42:20 EDT (Sun, 19 Jul 2009)
@@ -35,8 +35,10 @@
double epsilon = 0.0000001;
BOOST_CHECK_CLOSE(heron<float>(), 0.0, epsilon);
- BOOST_CHECK_CLOSE(heron<double>(), 0.32749040502871557, epsilon);
+ BOOST_CHECK_CLOSE(heron<double>(), 0.32749053277825713, epsilon);
+#if ! defined(_MSC_VER)
BOOST_CHECK_CLOSE(heron<long double>(), 0.327490459921098, epsilon);
+#endif
#if defined(HAVE_CLN)
BOOST_CHECK_CLOSE(heron<boost::numeric_adaptor::cln_value_type>(), 0.32749045994262366, epsilon);
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