|
Boost-Commit : |
From: john_at_[hidden]
Date: 2007-10-09 10:49:38
Author: johnmaddock
Date: 2007-10-09 10:49:37 EDT (Tue, 09 Oct 2007)
New Revision: 39843
URL: http://svn.boost.org/trac/boost/changeset/39843
Log:
A few fixes to keep Borland happy.
Text files modified:
trunk/libs/math/test/test_binomial_coeff.cpp | 4 ++++
trunk/libs/math/test/test_classify.cpp | 2 ++
trunk/libs/math/test/test_digamma.cpp | 4 ++++
trunk/libs/math/test/test_hermite.cpp | 4 ++++
4 files changed, 14 insertions(+), 0 deletions(-)
Modified: trunk/libs/math/test/test_binomial_coeff.cpp
==============================================================================
--- trunk/libs/math/test/test_binomial_coeff.cpp (original)
+++ trunk/libs/math/test/test_binomial_coeff.cpp 2007-10-09 10:49:37 EDT (Tue, 09 Oct 2007)
@@ -8,8 +8,10 @@
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/binomial.hpp>
#include <boost/math/tools/test.hpp>
+#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
#include <boost/lambda/lambda.hpp>
#include <boost/lambda/bind.hpp>
+#endif
#include <boost/array.hpp>
#include "handle_test_result.hpp"
@@ -102,6 +104,7 @@
template <class T>
void test_binomial(T, const char* type_name)
{
+#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
using namespace boost::lambda;
using namespace std;
@@ -133,6 +136,7 @@
std::cout << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
handle_test_result(result, binomial_large_data[result.worst()], result.worst(), type_name, "binomial_coefficient", "Binomials: large arguments");
std::cout << std::endl;
+#endif
}
template <class T>
Modified: trunk/libs/math/test/test_classify.cpp
==============================================================================
--- trunk/libs/math/test/test_classify.cpp (original)
+++ trunk/libs/math/test/test_classify.cpp 2007-10-09 10:49:37 EDT (Tue, 09 Oct 2007)
@@ -133,8 +133,10 @@
// then run the tests:
test_classify(float(0), "float");
test_classify(double(0), "double");
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
test_classify((long double)(0), "long double");
test_classify((boost::math::concepts::real_concept)(0), "real_concept");
+#endif
return 0;
}
Modified: trunk/libs/math/test/test_digamma.cpp
==============================================================================
--- trunk/libs/math/test/test_digamma.cpp (original)
+++ trunk/libs/math/test/test_digamma.cpp 2007-10-09 10:49:37 EDT (Tue, 09 Oct 2007)
@@ -8,8 +8,10 @@
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/special_functions/digamma.hpp>
#include <boost/array.hpp>
+#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
#include <boost/lambda/lambda.hpp>
#include <boost/lambda/bind.hpp>
+#endif
#include "handle_test_result.hpp"
@@ -67,6 +69,7 @@
template <class T>
void do_test_digamma(const T& data, const char* type_name, const char* test_name)
{
+#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
typedef typename T::value_type row_type;
typedef typename row_type::value_type value_type;
@@ -88,6 +91,7 @@
boost::lambda::ret<value_type>(boost::lambda::_1[1]));
handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::digamma", test_name);
std::cout << std::endl;
+#endif
}
template <class T>
Modified: trunk/libs/math/test/test_hermite.cpp
==============================================================================
--- trunk/libs/math/test/test_hermite.cpp (original)
+++ trunk/libs/math/test/test_hermite.cpp 2007-10-09 10:49:37 EDT (Tue, 09 Oct 2007)
@@ -18,8 +18,10 @@
#include <boost/math/special_functions/hermite.hpp>
#include <boost/math/constants/constants.hpp>
#include <boost/array.hpp>
+#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
#include <boost/lambda/lambda.hpp>
#include <boost/lambda/bind.hpp>
+#endif
#include "handle_test_result.hpp"
#include "test_legendre_hooks.hpp"
@@ -96,6 +98,7 @@
template <class T>
void do_test_hermite(const T& data, const char* type_name, const char* test_name)
{
+#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
typedef typename T::value_type row_type;
typedef typename row_type::value_type value_type;
@@ -125,6 +128,7 @@
handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::hermite", test_name);
std::cout << std::endl;
+#endif
}
template <class T>
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