Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-10-26 14:12:29


Author: johnmaddock
Date: 2007-10-26 14:12:28 EDT (Fri, 26 Oct 2007)
New Revision: 40484
URL: http://svn.boost.org/trac/boost/changeset/40484

Log:
Try and work around a Tru64 overload resolution bug.
Text files modified:
   trunk/libs/math/test/compile_test/sf_fpclassify_incl_test.cpp | 2 --
   trunk/libs/math/test/compile_test/sf_sph_harm_incl_test.cpp | 5 +++--
   trunk/libs/math/test/compile_test/test_compile_result.hpp | 1 +
   trunk/libs/math/test/compile_test/tools_roots_inc_test.cpp | 4 ++--
   trunk/libs/math/test/compile_test/tools_test_inc_test.cpp | 4 ++--
   5 files changed, 8 insertions(+), 8 deletions(-)

Modified: trunk/libs/math/test/compile_test/sf_fpclassify_incl_test.cpp
==============================================================================
--- trunk/libs/math/test/compile_test/sf_fpclassify_incl_test.cpp (original)
+++ trunk/libs/math/test/compile_test/sf_fpclassify_incl_test.cpp 2007-10-26 14:12:28 EDT (Fri, 26 Oct 2007)
@@ -13,8 +13,6 @@
 //
 #include "test_compile_result.hpp"
 
-inline void check_result_imp(bool, bool){}
-
 void check()
 {
    check_result<int>(boost::math::fpclassify<float>(f));

Modified: trunk/libs/math/test/compile_test/sf_sph_harm_incl_test.cpp
==============================================================================
--- trunk/libs/math/test/compile_test/sf_sph_harm_incl_test.cpp (original)
+++ trunk/libs/math/test/compile_test/sf_sph_harm_incl_test.cpp 2007-10-26 14:12:28 EDT (Fri, 26 Oct 2007)
@@ -11,12 +11,13 @@
 // Note this header includes no other headers, this is
 // important if this test is to be meaningful:
 //
-#include "test_compile_result.hpp"
-
 inline void check_result_imp(std::complex<float>, std::complex<float>){}
 inline void check_result_imp(std::complex<double>, std::complex<double>){}
 inline void check_result_imp(std::complex<long double>, std::complex<long double>){}
 
+#include "test_compile_result.hpp"
+
+
 
 void check()
 {

Modified: trunk/libs/math/test/compile_test/test_compile_result.hpp
==============================================================================
--- trunk/libs/math/test/compile_test/test_compile_result.hpp (original)
+++ trunk/libs/math/test/compile_test/test_compile_result.hpp 2007-10-26 14:12:28 EDT (Fri, 26 Oct 2007)
@@ -22,6 +22,7 @@
 inline void check_result_imp(double, double){}
 inline void check_result_imp(long double, long double){}
 inline void check_result_imp(int, int){}
+inline void check_result_imp(bool, bool){}
 
 template <class T1, class T2>
 inline void check_result_imp(T1, T2)

Modified: trunk/libs/math/test/compile_test/tools_roots_inc_test.cpp
==============================================================================
--- trunk/libs/math/test/compile_test/tools_roots_inc_test.cpp (original)
+++ trunk/libs/math/test/compile_test/tools_roots_inc_test.cpp 2007-10-26 14:12:28 EDT (Fri, 26 Oct 2007)
@@ -11,12 +11,12 @@
 // Note this header includes no other headers, this is
 // important if this test is to be meaningful:
 //
-#include "test_compile_result.hpp"
-
 inline void check_result_imp(std::pair<float, float>, std::pair<float, float>){}
 inline void check_result_imp(std::pair<double, double>, std::pair<double, double>){}
 inline void check_result_imp(std::pair<long double, long double>, std::pair<long double, long double>){}
 
+#include "test_compile_result.hpp"
+
 void check()
 {
    typedef double (*F)(double);

Modified: trunk/libs/math/test/compile_test/tools_test_inc_test.cpp
==============================================================================
--- trunk/libs/math/test/compile_test/tools_test_inc_test.cpp (original)
+++ trunk/libs/math/test/compile_test/tools_test_inc_test.cpp 2007-10-26 14:12:28 EDT (Fri, 26 Oct 2007)
@@ -12,10 +12,10 @@
 // Note this header includes no other headers, this is
 // important if this test is to be meaningful:
 //
-#include "test_compile_result.hpp"
-
 inline void check_result_imp(boost::math::tools::test_result<double>, boost::math::tools::test_result<double>){}
 
+#include "test_compile_result.hpp"
+
 
 void check()
 {


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