Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-10-09 14:11:18


Author: johnmaddock
Date: 2007-10-09 14:11:17 EDT (Tue, 09 Oct 2007)
New Revision: 39854
URL: http://svn.boost.org/trac/boost/changeset/39854

Log:
More Borland workarounds.
Text files modified:
   trunk/libs/math/test/test_ibeta_inv.cpp | 4 ++++
   trunk/libs/math/test/test_ibeta_inv_ab.cpp | 4 ++++
   trunk/libs/math/test/test_laguerre.cpp | 6 ++++++
   trunk/libs/math/test/test_legendre.cpp | 6 ++++++
   trunk/libs/math/test/test_rational_instances/test_rational_real_concept1.cpp | 4 ++++
   trunk/libs/math/test/test_rational_instances/test_rational_real_concept2.cpp | 4 ++++
   trunk/libs/math/test/test_rational_instances/test_rational_real_concept3.cpp | 4 ++++
   trunk/libs/math/test/test_rational_instances/test_rational_real_concept4.cpp | 4 ++++
   trunk/libs/math/test/test_rational_instances/test_rational_real_concept5.cpp | 5 +++++
   trunk/libs/math/test/test_spherical_harmonic.cpp | 4 ++++
   10 files changed, 45 insertions(+), 0 deletions(-)

Modified: trunk/libs/math/test/test_ibeta_inv.cpp
==============================================================================
--- trunk/libs/math/test/test_ibeta_inv.cpp (original)
+++ trunk/libs/math/test/test_ibeta_inv.cpp 2007-10-09 14:11:17 EDT (Tue, 09 Oct 2007)
@@ -12,8 +12,10 @@
 #include <boost/math/constants/constants.hpp>
 #include <boost/type_traits/is_floating_point.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 "test_beta_hooks.hpp"
 #include "handle_test_result.hpp"
@@ -204,6 +206,7 @@
 template <class T>
 void test_inverses2(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;
 
@@ -234,6 +237,7 @@
       bind(funcp, ret<value_type>(_1[0]), ret<value_type>(_1[1]), ret<value_type>(_1[2])),
       ret<value_type>(_1[4]));
    handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::ibetac_inv", test_name);
+#endif
 }
 
 

Modified: trunk/libs/math/test/test_ibeta_inv_ab.cpp
==============================================================================
--- trunk/libs/math/test/test_ibeta_inv_ab.cpp (original)
+++ trunk/libs/math/test/test_ibeta_inv_ab.cpp 2007-10-09 14:11:17 EDT (Tue, 09 Oct 2007)
@@ -12,8 +12,10 @@
 #include <boost/math/constants/constants.hpp>
 #include <boost/type_traits/is_floating_point.hpp>
 #include <boost/array.hpp>
+#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
 #include <boost/lambda/lambda.hpp>
 #include <boost/lambda/bind.hpp>
+#endif
 
 #ifdef TEST_GSL
 #include <gsl/gsl_errno.h>
@@ -168,6 +170,7 @@
 template <class T>
 void test_inverses2(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;
 
@@ -216,6 +219,7 @@
       bind(funcp, ret<value_type>(_1[0]), ret<value_type>(_1[1]), ret<value_type>(_1[2])),
       ret<value_type>(_1[6]));
    handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::ibetac_invb", test_name);
+#endif
 }
 
 template <class T>

Modified: trunk/libs/math/test/test_laguerre.cpp
==============================================================================
--- trunk/libs/math/test/test_laguerre.cpp (original)
+++ trunk/libs/math/test/test_laguerre.cpp 2007-10-09 14:11:17 EDT (Tue, 09 Oct 2007)
@@ -9,8 +9,10 @@
 #include <boost/math/special_functions/laguerre.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"
@@ -134,6 +136,7 @@
 template <class T>
 void do_test_laguerre2(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;
 
@@ -163,11 +166,13 @@
    handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::laguerre(n, x)", test_name);
 
    std::cout << std::endl;
+#endif
 }
 
 template <class T>
 void do_test_laguerre3(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;
 
@@ -200,6 +205,7 @@
       boost::lambda::ret<value_type>(boost::lambda::_1[3]));
    handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::laguerre(n, m, x)", test_name);
    std::cout << std::endl;
+#endif
 }
 
 template <class T>

Modified: trunk/libs/math/test/test_legendre.cpp
==============================================================================
--- trunk/libs/math/test/test_legendre.cpp (original)
+++ trunk/libs/math/test/test_legendre.cpp 2007-10-09 14:11:17 EDT (Tue, 09 Oct 2007)
@@ -9,8 +9,10 @@
 #include <boost/math/special_functions/legendre.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"
@@ -190,6 +192,7 @@
 template <class T>
 void do_test_legendre_p(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;
 
@@ -267,11 +270,13 @@
 
 
    std::cout << std::endl;
+#endif
 }
 
 template <class T>
 void do_test_assoc_legendre_p(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;
 
@@ -304,6 +309,7 @@
       boost::lambda::ret<value_type>(boost::lambda::_1[3]));
    handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::legendre_p", test_name);
    std::cout << std::endl;
+#endif
 }
 
 template <class T>

Modified: trunk/libs/math/test/test_rational_instances/test_rational_real_concept1.cpp
==============================================================================
--- trunk/libs/math/test/test_rational_instances/test_rational_real_concept1.cpp (original)
+++ trunk/libs/math/test/test_rational_instances/test_rational_real_concept1.cpp 2007-10-09 14:11:17 EDT (Tue, 09 Oct 2007)
@@ -1,6 +1,10 @@
 
+#include <boost/detail/workaround.hpp>
+#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
+
 #include "test_rational.hpp"
 #include <boost/math/concepts/real_concept.hpp>
 
 template void do_test_spots<boost::math::concepts::real_concept, boost::math::concepts::real_concept>(boost::math::concepts::real_concept, boost::math::concepts::real_concept);
 
+#endif

Modified: trunk/libs/math/test/test_rational_instances/test_rational_real_concept2.cpp
==============================================================================
--- trunk/libs/math/test/test_rational_instances/test_rational_real_concept2.cpp (original)
+++ trunk/libs/math/test/test_rational_instances/test_rational_real_concept2.cpp 2007-10-09 14:11:17 EDT (Tue, 09 Oct 2007)
@@ -1,6 +1,10 @@
 
+#include <boost/detail/workaround.hpp>
+#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
+
 #include "test_rational.hpp"
 #include <boost/math/concepts/real_concept.hpp>
 
 template void do_test_spots<boost::math::concepts::real_concept, int>(boost::math::concepts::real_concept, int);
 
+#endif

Modified: trunk/libs/math/test/test_rational_instances/test_rational_real_concept3.cpp
==============================================================================
--- trunk/libs/math/test/test_rational_instances/test_rational_real_concept3.cpp (original)
+++ trunk/libs/math/test/test_rational_instances/test_rational_real_concept3.cpp 2007-10-09 14:11:17 EDT (Tue, 09 Oct 2007)
@@ -1,6 +1,10 @@
 
+#include <boost/detail/workaround.hpp>
+#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
+
 #include "test_rational.hpp"
 #include <boost/math/concepts/real_concept.hpp>
 
 template void do_test_spots<boost::math::concepts::real_concept, unsigned>(boost::math::concepts::real_concept, unsigned);
 
+#endif

Modified: trunk/libs/math/test/test_rational_instances/test_rational_real_concept4.cpp
==============================================================================
--- trunk/libs/math/test/test_rational_instances/test_rational_real_concept4.cpp (original)
+++ trunk/libs/math/test/test_rational_instances/test_rational_real_concept4.cpp 2007-10-09 14:11:17 EDT (Tue, 09 Oct 2007)
@@ -1,7 +1,11 @@
 
+#include <boost/detail/workaround.hpp>
+#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
+
 #include "test_rational.hpp"
 #include <boost/math/concepts/real_concept.hpp>
 
 #ifdef BOOST_HAS_LONG_LONG
 template void do_test_spots<boost::math::concepts::real_concept, unsigned long long>(boost::math::concepts::real_concept, unsigned long long);
 #endif
+#endif

Modified: trunk/libs/math/test/test_rational_instances/test_rational_real_concept5.cpp
==============================================================================
--- trunk/libs/math/test/test_rational_instances/test_rational_real_concept5.cpp (original)
+++ trunk/libs/math/test/test_rational_instances/test_rational_real_concept5.cpp 2007-10-09 14:11:17 EDT (Tue, 09 Oct 2007)
@@ -1,5 +1,10 @@
 
+#include <boost/detail/workaround.hpp>
+#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
+
 #include "test_rational.hpp"
 #include <boost/math/concepts/real_concept.hpp>
 
 template void do_test_spots<boost::math::concepts::real_concept, float>(boost::math::concepts::real_concept, float);
+
+#endif

Modified: trunk/libs/math/test/test_spherical_harmonic.cpp
==============================================================================
--- trunk/libs/math/test/test_spherical_harmonic.cpp (original)
+++ trunk/libs/math/test/test_spherical_harmonic.cpp 2007-10-09 14:11:17 EDT (Tue, 09 Oct 2007)
@@ -9,8 +9,10 @@
 #include <boost/math/special_functions/spherical_harmonic.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"
 
@@ -98,6 +100,7 @@
 template <class T>
 void do_test_spherical_harmonic(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;
 
@@ -151,6 +154,7 @@
    handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::spherical_harmonic_i", 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