Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85131 - in trunk: boost/math/distributions boost/math/special_functions libs/math/build libs/math/test libs/math/test/compile_test
From: john_at_[hidden]
Date: 2013-07-23 07:09:48


Author: johnmaddock
Date: 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013)
New Revision: 85131
URL: http://svn.boost.org/trac/boost/changeset/85131

Log:
Fix gcc-4.8.x warnings.
Fix some Mingw failures.
Fixes #8855.

Text files modified:
   trunk/boost/math/distributions/inverse_gaussian.hpp | 2 +-
   trunk/boost/math/special_functions/airy.hpp | 4 ++--
   trunk/boost/math/special_functions/beta.hpp | 2 --
   trunk/libs/math/build/Jamfile.v2 | 1 +
   trunk/libs/math/test/Jamfile.v2 | 1 +
   trunk/libs/math/test/compile_test/test_compile_result.hpp | 12 +++++++++++-
   trunk/libs/math/test/log1p_expm1_test.hpp | 1 -
   trunk/libs/math/test/test_bessel_i.cpp | 7 +++++++
   trunk/libs/math/test/test_bessel_i.hpp | 2 --
   trunk/libs/math/test/test_bessel_j.hpp | 5 -----
   trunk/libs/math/test/test_bessel_k.hpp | 2 --
   trunk/libs/math/test/test_bessel_y.hpp | 5 -----
   trunk/libs/math/test/test_beta.hpp | 1 -
   trunk/libs/math/test/test_carlson.hpp | 4 ----
   trunk/libs/math/test/test_cbrt.hpp | 1 -
   trunk/libs/math/test/test_digamma.hpp | 1 -
   trunk/libs/math/test/test_ellint_1.hpp | 4 +---
   trunk/libs/math/test/test_ellint_2.hpp | 4 +---
   trunk/libs/math/test/test_ellint_3.hpp | 2 --
   trunk/libs/math/test/test_erf.hpp | 3 ---
   trunk/libs/math/test/test_expint.hpp | 2 --
   trunk/libs/math/test/test_gamma.cpp | 2 +-
   trunk/libs/math/test/test_gamma.hpp | 2 --
   trunk/libs/math/test/test_hermite.hpp | 3 ---
   trunk/libs/math/test/test_hypergeometric_dist.cpp | 2 --
   trunk/libs/math/test/test_ibeta.cpp | 2 +-
   trunk/libs/math/test/test_ibeta.hpp | 1 -
   trunk/libs/math/test/test_igamma.cpp | 17 ++++++++++++-----
   trunk/libs/math/test/test_igamma.hpp | 1 -
   trunk/libs/math/test/test_igamma_inv.hpp | 2 --
   trunk/libs/math/test/test_igamma_inva.hpp | 2 --
   trunk/libs/math/test/test_jacobi.hpp | 1 -
   trunk/libs/math/test/test_laguerre.hpp | 2 --
   trunk/libs/math/test/test_legendre.hpp | 2 --
   trunk/libs/math/test/test_nc_beta.cpp | 2 --
   trunk/libs/math/test/test_skew_normal.cpp | 2 +-
   trunk/libs/math/test/test_spherical_harmonic.cpp | 2 --
   trunk/libs/math/test/test_students_t.cpp | 12 ++++++------
   trunk/libs/math/test/test_tgamma_ratio.cpp | 8 ++++++++
   trunk/libs/math/test/test_tgamma_ratio.hpp | 2 --
   trunk/libs/math/test/test_zeta.hpp | 1 -
   41 files changed, 54 insertions(+), 80 deletions(-)

Modified: trunk/boost/math/distributions/inverse_gaussian.hpp
==============================================================================
--- trunk/boost/math/distributions/inverse_gaussian.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/boost/math/distributions/inverse_gaussian.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -286,7 +286,7 @@
       // Define the distribution, using gamma_nooverflow:
       typedef gamma_distribution<RealType, no_overthrow_policy> gamma_nooverflow;
 
- gamma_distribution<RealType, no_overthrow_policy> g(static_cast<RealType>(0.5), static_cast<RealType>(1.));
+ gamma_nooverflow g(static_cast<RealType>(0.5), static_cast<RealType>(1.));
 
       // gamma_nooverflow g(static_cast<RealType>(0.5), static_cast<RealType>(1.));
       // R qgamma(0.2, 0.5, 1) 0.0320923

Modified: trunk/boost/math/special_functions/airy.hpp
==============================================================================
--- trunk/boost/math/special_functions/airy.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/boost/math/special_functions/airy.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -348,7 +348,7 @@
       policies::discrete_quantile<>,
       policies::assert_undefined<> >::type forwarding_policy;
    BOOST_STATIC_ASSERT_MSG(false == std::numeric_limits<T>::is_integer, "Airy return type must be a floating-point type.");
- return policies::checked_narrowing_cast<T, Policy>(detail::airy_ai_zero_imp<T>(m, pol), "boost::math::airy_ai_zero<%1%>(unsigned)");
+ return policies::checked_narrowing_cast<T, Policy>(detail::airy_ai_zero_imp<value_type>(m, forwarding_policy()), "boost::math::airy_ai_zero<%1%>(unsigned)");
 }
 
 template <class T>
@@ -396,7 +396,7 @@
       policies::discrete_quantile<>,
       policies::assert_undefined<> >::type forwarding_policy;
    BOOST_STATIC_ASSERT_MSG(false == std::numeric_limits<T>::is_integer, "Airy return type must be a floating-point type.");
- return policies::checked_narrowing_cast<T, Policy>(detail::airy_bi_zero_imp<T>(m, pol), "boost::math::airy_bi_zero<%1%>(unsigned)");
+ return policies::checked_narrowing_cast<T, Policy>(detail::airy_bi_zero_imp<value_type>(m, forwarding_policy()), "boost::math::airy_bi_zero<%1%>(unsigned)");
 }
 
 template <typename T>

Modified: trunk/boost/math/special_functions/beta.hpp
==============================================================================
--- trunk/boost/math/special_functions/beta.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/boost/math/special_functions/beta.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -1331,7 +1331,6 @@
    BOOST_FPU_EXCEPTION_GUARD
    typedef typename tools::promote_args<RT1, RT2, RT3>::type result_type;
    typedef typename policies::evaluation<result_type, Policy>::type value_type;
- typedef typename lanczos::lanczos<value_type, Policy>::type evaluation_type;
    typedef typename policies::normalise<
       Policy,
       policies::promote_float<false>,
@@ -1349,7 +1348,6 @@
    BOOST_FPU_EXCEPTION_GUARD
    typedef typename tools::promote_args<RT1, RT2, RT3>::type result_type;
    typedef typename policies::evaluation<result_type, Policy>::type value_type;
- typedef typename lanczos::lanczos<value_type, Policy>::type evaluation_type;
    typedef typename policies::normalise<
       Policy,
       policies::promote_float<false>,

Modified: trunk/libs/math/build/Jamfile.v2
==============================================================================
--- trunk/libs/math/build/Jamfile.v2 Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/build/Jamfile.v2 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -13,6 +13,7 @@
       #<toolset>intel-linux:<pch>off
       <toolset>intel-darwin:<pch>off
       <toolset>msvc-7.1:<pch>off
+ <toolset>gcc-mingw:<pch>off
       #<toolset>gcc:<cxxflags>-fvisibility=hidden
       <toolset>intel-linux:<cxxflags>-fvisibility=hidden
       <toolset>sun:<cxxflags>-xldscope=hidden

Modified: trunk/libs/math/test/Jamfile.v2
==============================================================================
--- trunk/libs/math/test/Jamfile.v2 Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/Jamfile.v2 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -36,6 +36,7 @@
        <toolset>msvc:<cxxflags>/wd4189 # local variable is initialized but not referenced
            <toolset>msvc-7.1:<source>../vc71_fix//vc_fix
       <toolset>msvc-7.1:<pch>off
+ <toolset>gcc-mingw:<pch>off
       <toolset>borland:<runtime-link>static
       # <toolset>msvc:<cxxflags>/wd4506 has no effect?
       # suppress xstring(237) : warning C4506: no definition for inline function

Modified: trunk/libs/math/test/compile_test/test_compile_result.hpp
==============================================================================
--- trunk/libs/math/test/compile_test/test_compile_result.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/compile_test/test_compile_result.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -28,10 +28,20 @@
 #endif
 inline void check_result_imp(bool, bool){}
 
+//
+// If the compiler warns about unused typedefs then enable this:
+//
+#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)))
+# define BOOST_MATH_ASSERT_UNUSED_ATTRIBUTE __attribute__((unused))
+#else
+# define BOOST_MATH_ASSERT_UNUSED_ATTRIBUTE
+#endif
+
 template <class T1, class T2>
 inline void check_result_imp(T1, T2)
 {
- typedef int static_assertion[sizeof(T1) == 0xFFFF];
+ // This is a static assertion that should always fail to compile...
+ typedef BOOST_MATH_ASSERT_UNUSED_ATTRIBUTE int static_assertion[sizeof(T1) == 0xFFFF];
 }
 
 template <class T1, class T2>

Modified: trunk/libs/math/test/log1p_expm1_test.hpp
==============================================================================
--- trunk/libs/math/test/log1p_expm1_test.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/log1p_expm1_test.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -14,7 +14,6 @@
 template <class Real, class T>
 void do_test(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type);

Modified: trunk/libs/math/test/test_bessel_i.cpp
==============================================================================
--- trunk/libs/math/test/test_bessel_i.cpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_bessel_i.cpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -75,6 +75,13 @@
       ".*", 400, 200); // test function
 
    add_expected_result(
+ "GNU.*", // compiler
+ ".*", // stdlib
+ "Win32.*", // platform
+ largest_type, // test type(s)
+ ".*Random.*", // test data group
+ ".*", 400, 200); // test function
+ add_expected_result(
       "GNU.*", // compiler
       ".*", // stdlib
       "Win32.*", // platform

Modified: trunk/libs/math/test/test_bessel_i.hpp
==============================================================================
--- trunk/libs/math/test/test_bessel_i.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_bessel_i.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -32,7 +32,6 @@
 template <class Real, class T>
 void do_test_cyl_bessel_i(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);
@@ -80,7 +79,6 @@
 template <class Real, class T>
 void do_test_cyl_bessel_i_int(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);

Modified: trunk/libs/math/test/test_bessel_j.hpp
==============================================================================
--- trunk/libs/math/test/test_bessel_j.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_bessel_j.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -25,7 +25,6 @@
 template <class Real, class T>
 void do_test_cyl_bessel_j(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);
@@ -78,7 +77,6 @@
 template <class Real, class T>
 void do_test_cyl_bessel_j_int(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);
@@ -107,7 +105,6 @@
 template <class Real, class T>
 void do_test_sph_bessel_j(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(unsigned, value_type);
@@ -117,8 +114,6 @@
    pg funcp = boost::math::sph_bessel;
 #endif
 
- typedef int (*cast_t)(value_type);
-
    boost::math::tools::test_result<value_type> result;
 
    std::cout << "Testing " << test_name << " with type " << type_name

Modified: trunk/libs/math/test/test_bessel_k.hpp
==============================================================================
--- trunk/libs/math/test/test_bessel_k.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_bessel_k.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -32,7 +32,6 @@
 template <class Real, class T>
 void do_test_cyl_bessel_k(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);
@@ -78,7 +77,6 @@
 template <class Real, class T>
 void do_test_cyl_bessel_k_int(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);

Modified: trunk/libs/math/test/test_bessel_y.hpp
==============================================================================
--- trunk/libs/math/test/test_bessel_y.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_bessel_y.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -25,7 +25,6 @@
 template <class Real, class T>
 void do_test_cyl_neumann_y(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);
@@ -77,7 +76,6 @@
 template <class Real, class T>
 void do_test_cyl_neumann_y_int(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);
@@ -106,7 +104,6 @@
 template <class Real, class T>
 void do_test_sph_neumann_y(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(unsigned, value_type);
@@ -116,8 +113,6 @@
    pg funcp = boost::math::sph_neumann;
 #endif
 
- typedef int (*cast_t)(value_type);
-
    boost::math::tools::test_result<value_type> result;
 
    std::cout << "Testing " << test_name << " with type " << type_name

Modified: trunk/libs/math/test/test_beta.hpp
==============================================================================
--- trunk/libs/math/test/test_beta.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_beta.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -35,7 +35,6 @@
 template <class Real, class T>
 void do_test_beta(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);

Modified: trunk/libs/math/test/test_carlson.hpp
==============================================================================
--- trunk/libs/math/test/test_carlson.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_carlson.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -24,7 +24,6 @@
 template <class Real, typename T>
 void do_test_ellint_rf(T& data, const char* type_name, const char* test)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << "Testing: " << test << std::endl;
@@ -50,7 +49,6 @@
 template <class Real, typename T>
 void do_test_ellint_rc(T& data, const char* type_name, const char* test)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << "Testing: " << test << std::endl;
@@ -76,7 +74,6 @@
 template <class Real, typename T>
 void do_test_ellint_rj(T& data, const char* type_name, const char* test)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << "Testing: " << test << std::endl;
@@ -102,7 +99,6 @@
 template <class Real, typename T>
 void do_test_ellint_rd(T& data, const char* type_name, const char* test)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << "Testing: " << test << std::endl;

Modified: trunk/libs/math/test/test_cbrt.hpp
==============================================================================
--- trunk/libs/math/test/test_cbrt.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_cbrt.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -38,7 +38,6 @@
 template <class Real, class T>
 void do_test_cbrt(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type);

Modified: trunk/libs/math/test/test_digamma.hpp
==============================================================================
--- trunk/libs/math/test/test_digamma.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_digamma.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -22,7 +22,6 @@
 template <class Real, class T>
 void do_test_digamma(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type);

Modified: trunk/libs/math/test/test_ellint_1.hpp
==============================================================================
--- trunk/libs/math/test/test_ellint_1.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_ellint_1.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -27,7 +27,6 @@
 template <class Real, typename T>
 void do_test_ellint_f(T& data, const char* type_name, const char* test)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << "Testing: " << test << std::endl;
@@ -53,8 +52,7 @@
 template <class Real, typename T>
 void do_test_ellint_k(T& data, const char* type_name, const char* test)
 {
- typedef typename T::value_type row_type;
- typedef Real value_type;
+ typedef Real value_type;
     boost::math::tools::test_result<value_type> result;
 
    std::cout << "Testing: " << test << std::endl;

Modified: trunk/libs/math/test/test_ellint_2.hpp
==============================================================================
--- trunk/libs/math/test/test_ellint_2.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_ellint_2.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -27,7 +27,6 @@
 template <class Real, typename T>
 void do_test_ellint_e2(const T& data, const char* type_name, const char* test)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << "Testing: " << test << std::endl;
@@ -52,8 +51,7 @@
 template <class Real, typename T>
 void do_test_ellint_e1(T& data, const char* type_name, const char* test)
 {
- typedef typename T::value_type row_type;
- typedef Real value_type;
+ typedef Real value_type;
     boost::math::tools::test_result<value_type> result;
 
    std::cout << "Testing: " << test << std::endl;

Modified: trunk/libs/math/test/test_ellint_3.hpp
==============================================================================
--- trunk/libs/math/test/test_ellint_3.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_ellint_3.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -28,7 +28,6 @@
 template <class Real, typename T>
 void do_test_ellint_pi3(T& data, const char* type_name, const char* test)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << "Testing: " << test << std::endl;
@@ -54,7 +53,6 @@
 template <class Real, typename T>
 void do_test_ellint_pi2(T& data, const char* type_name, const char* test)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << "Testing: " << test << std::endl;

Modified: trunk/libs/math/test/test_erf.hpp
==============================================================================
--- trunk/libs/math/test/test_erf.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_erf.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -25,7 +25,6 @@
 template <class Real, class T>
 void do_test_erf(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type);
@@ -87,7 +86,6 @@
 template <class Real, class T>
 void do_test_erf_inv(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type);
@@ -114,7 +112,6 @@
 template <class Real, class T>
 void do_test_erfc_inv(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type);

Modified: trunk/libs/math/test/test_expint.hpp
==============================================================================
--- trunk/libs/math/test/test_expint.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_expint.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -46,7 +46,6 @@
    // test En(T) against data:
    //
    using namespace std;
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << test_name << " with type " << type_name << std::endl;
@@ -91,7 +90,6 @@
    // test Ei(T) against data:
    //
    using namespace std;
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << test_name << " with type " << type_name << std::endl;

Modified: trunk/libs/math/test/test_gamma.cpp
==============================================================================
--- trunk/libs/math/test/test_gamma.cpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_gamma.cpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -76,7 +76,7 @@
       "Win32.*", // platform
       "real_concept", // test type(s)
       "factorials", // test data group
- "boost::math::tgamma", 200, 100); // test function
+ "boost::math::tgamma", 250, 100); // test function
    add_expected_result(
       "GNU.*", // compiler
       ".*", // stdlib

Modified: trunk/libs/math/test/test_gamma.hpp
==============================================================================
--- trunk/libs/math/test/test_gamma.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_gamma.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -29,7 +29,6 @@
 template <class Real, class T>
 void do_test_gamma(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type);
@@ -92,7 +91,6 @@
 template <class Real, class T>
 void do_test_gammap1m1(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type);

Modified: trunk/libs/math/test/test_hermite.hpp
==============================================================================
--- trunk/libs/math/test/test_hermite.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_hermite.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -31,7 +31,6 @@
 template <class Real, class T>
 void do_test_hermite(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(unsigned, value_type);
@@ -41,8 +40,6 @@
    pg funcp = boost::math::hermite;
 #endif
 
- typedef unsigned (*cast_t)(value_type);
-
    boost::math::tools::test_result<value_type> result;
 
    std::cout << "Testing " << test_name << " with type " << type_name

Modified: trunk/libs/math/test/test_hypergeometric_dist.cpp
==============================================================================
--- trunk/libs/math/test/test_hypergeometric_dist.cpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_hypergeometric_dist.cpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -147,7 +147,6 @@
    (void)test_name;
 
 #if !defined(TEST_QUANT) || (TEST_QUANT == 0)
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type, value_type, value_type);
@@ -207,7 +206,6 @@
 template <class Real, class T>
 void do_test_hypergeometric_quantile(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << "Checking quantiles with " << test_name << " with type " << type_name

Modified: trunk/libs/math/test/test_ibeta.cpp
==============================================================================
--- trunk/libs/math/test/test_ibeta.cpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_ibeta.cpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -231,7 +231,7 @@
       "[^|]*", // platform
       largest_type, // test type(s)
       "(?i).*medium.*", // test data group
- ".*", 150, 50); // test function
+ ".*", 350, 50); // test function
    add_expected_result(
       "[^|]*", // compiler
       "[^|]*", // stdlib

Modified: trunk/libs/math/test/test_ibeta.hpp
==============================================================================
--- trunk/libs/math/test/test_ibeta.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_ibeta.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -27,7 +27,6 @@
 template <class Real, class T>
 void do_test_beta(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type, value_type);

Modified: trunk/libs/math/test/test_igamma.cpp
==============================================================================
--- trunk/libs/math/test/test_igamma.cpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_igamma.cpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -201,9 +201,16 @@
       "GNU[^|]*", // compiler
       "[^|]*", // stdlib
       "Win32[^|]*", // platform
+ "real_concept", // test type(s)
+ "[^|]*medium[^|]*", // test data group
+ "[^|]*", 700, 200); // test function
+ add_expected_result(
+ "GNU[^|]*", // compiler
+ "[^|]*", // stdlib
+ "Win32[^|]*", // platform
       largest_type, // test type(s)
       "[^|]*medium[^|]*", // test data group
- "[^|]*", 200, 100); // test function
+ "[^|]*", 700, 200); // test function
    add_expected_result(
       "GNU[^|]*", // compiler
       "[^|]*", // stdlib
@@ -215,16 +222,16 @@
       "GNU[^|]*", // compiler
       "[^|]*", // stdlib
       "Win32[^|]*", // platform
- "real_concept", // test type(s)
- "[^|]*medium[^|]*", // test data group
- "[^|]*", 400, 100); // test function
+ largest_type, // test type(s)
+ "[^|]*integer[^|]*", // test data group
+ ".*", 120, 50); // test function
    add_expected_result(
       "GNU[^|]*", // compiler
       "[^|]*", // stdlib
       "Win32[^|]*", // platform
       "real_concept", // test type(s)
       "[^|]*integer[^|]*", // test data group
- ".*", 80, 50); // test function
+ ".*", 100, 50); // test function
 
    //
    // Large exponent range causes more extreme test cases to be evaluated:

Modified: trunk/libs/math/test/test_igamma.hpp
==============================================================================
--- trunk/libs/math/test/test_igamma.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_igamma.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -29,7 +29,6 @@
 template <class Real, class T>
 void do_test_gamma_2(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);

Modified: trunk/libs/math/test/test_igamma_inv.hpp
==============================================================================
--- trunk/libs/math/test/test_igamma_inv.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_igamma_inv.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -46,7 +46,6 @@
    // test gamma_p_inv(T, T) against data:
    //
    using namespace std;
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << test_name << " with type " << type_name << std::endl;
@@ -116,7 +115,6 @@
 template <class Real, class T>
 void do_test_gamma_inv(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);

Modified: trunk/libs/math/test/test_igamma_inva.hpp
==============================================================================
--- trunk/libs/math/test/test_igamma_inva.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_igamma_inva.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -46,7 +46,6 @@
    // test gamma_p_inva(T, T) against data:
    //
    using namespace std;
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << test_name << " with type " << type_name << std::endl;
@@ -116,7 +115,6 @@
 template <class Real, class T>
 void do_test_gamma_inva(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);

Modified: trunk/libs/math/test/test_jacobi.hpp
==============================================================================
--- trunk/libs/math/test/test_jacobi.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_jacobi.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -29,7 +29,6 @@
 template <class Real, typename T>
 void do_test_sn(T& data, const char* type_name, const char* test)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << "Testing: " << test << std::endl;

Modified: trunk/libs/math/test/test_laguerre.hpp
==============================================================================
--- trunk/libs/math/test/test_laguerre.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_laguerre.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -24,7 +24,6 @@
 template <class Real, class T>
 void do_test_laguerre2(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(unsigned, value_type);
@@ -54,7 +53,6 @@
 template <class Real, class T>
 void do_test_laguerre3(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(unsigned, unsigned, value_type);

Modified: trunk/libs/math/test/test_legendre.hpp
==============================================================================
--- trunk/libs/math/test/test_legendre.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_legendre.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -28,7 +28,6 @@
 template <class Real, class T>
 void do_test_legendre_p(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(int, value_type);
@@ -95,7 +94,6 @@
 template <class Real, class T>
 void do_test_assoc_legendre_p(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(int, int, value_type);

Modified: trunk/libs/math/test/test_nc_beta.cpp
==============================================================================
--- trunk/libs/math/test/test_nc_beta.cpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_nc_beta.cpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -295,7 +295,6 @@
 template <typename Real, typename T>
 void do_test_nc_chi_squared(T& data, const char* type_name, const char* test)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << "Testing: " << test << std::endl;
@@ -334,7 +333,6 @@
 template <typename Real, typename T>
 void quantile_sanity_check(T& data, const char* type_name, const char* test)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    //

Modified: trunk/libs/math/test/test_skew_normal.cpp
==============================================================================
--- trunk/libs/math/test/test_skew_normal.cpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_skew_normal.cpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -337,7 +337,7 @@
 
         BOOST_CHECK_CLOSE( // mean:
            mean(dist)
- , static_cast<RealType>(-0.579908992539856825862549L), tol100);
+ , static_cast<RealType>(-0.579908992539856825862549L), tol100 * 2);
          BOOST_CHECK_CLOSE( // variance:
           variance(dist)
           , static_cast<RealType>(2.0179057767837232633904L), tol100);

Modified: trunk/libs/math/test/test_spherical_harmonic.cpp
==============================================================================
--- trunk/libs/math/test/test_spherical_harmonic.cpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_spherical_harmonic.cpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -101,7 +101,6 @@
 template <class Real, class T>
 void do_test_spherical_harmonic(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(unsigned, int, value_type, value_type);
@@ -145,7 +144,6 @@
 template <class Real, class T>
 void test_complex_spherical_harmonic(const T& data, const char* /* name */, boost::mpl::true_ const &)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    for(unsigned i = 0; i < sizeof(data) / sizeof(data[0]); ++i)

Modified: trunk/libs/math/test/test_students_t.cpp
==============================================================================
--- trunk/libs/math/test/test_students_t.cpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_students_t.cpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -367,19 +367,19 @@
                   students_t_distribution<RealType>(1e20f), static_cast<RealType>(0.25f))),
             static_cast<RealType>(0.25f), tolerance);
          BOOST_CHECK_CLOSE(boost::math::cdf(
- students_t_distribution<RealType>(0x7FFFFFFF),
+ students_t_distribution<RealType>(static_cast<RealType>(0x7FFFFFFF)),
                boost::math::quantile(
- students_t_distribution<RealType>(0x7FFFFFFF), static_cast<RealType>(0.25f))),
+ students_t_distribution<RealType>(static_cast<RealType>(0x7FFFFFFF)), static_cast<RealType>(0.25f))),
             static_cast<RealType>(0.25f), tolerance);
          BOOST_CHECK_CLOSE(boost::math::cdf(
- students_t_distribution<RealType>(0x10000000),
+ students_t_distribution<RealType>(static_cast<RealType>(0x10000000)),
                boost::math::quantile(
- students_t_distribution<RealType>(0x10000000), static_cast<RealType>(0.25f))),
+ students_t_distribution<RealType>(static_cast<RealType>(0x10000000)), static_cast<RealType>(0.25f))),
             static_cast<RealType>(0.25f), tolerance);
          BOOST_CHECK_CLOSE(boost::math::cdf(
- students_t_distribution<RealType>(0x0fffffff),
+ students_t_distribution<RealType>(static_cast<RealType>(0x0fffffff)),
                boost::math::quantile(
- students_t_distribution<RealType>(0x0fffffff), static_cast<RealType>(0.25f))),
+ students_t_distribution<RealType>(static_cast<RealType>(0x0fffffff)), static_cast<RealType>(0.25f))),
             static_cast<RealType>(0.25f), tolerance);
       }
 

Modified: trunk/libs/math/test/test_tgamma_ratio.cpp
==============================================================================
--- trunk/libs/math/test/test_tgamma_ratio.cpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_tgamma_ratio.cpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -77,6 +77,14 @@
       "real_concept", // test type(s)
       "[^|]*", // test data group
       "boost::math::tgamma_ratio[^|]*", 300, 100); // test function
+
+ add_expected_result(
+ "GNU.*", // compiler
+ "[^|]*", // stdlib
+ "Win32.*", // platform
+ largest_type, // test type(s)
+ "[^|]*", // test data group
+ "boost::math::tgamma_ratio[^|]*", 300, 100); // test function
    //
    // Catch all cases come last:
    //

Modified: trunk/libs/math/test/test_tgamma_ratio.hpp
==============================================================================
--- trunk/libs/math/test/test_tgamma_ratio.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_tgamma_ratio.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -36,7 +36,6 @@
 template <class Real, class T>
 void do_test_tgamma_delta_ratio(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);
@@ -69,7 +68,6 @@
 template <class Real, class T>
 void do_test_tgamma_ratio(const T& data, const char* type_name, const char* test_name)
 {
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    typedef value_type (*pg)(value_type, value_type);

Modified: trunk/libs/math/test/test_zeta.hpp
==============================================================================
--- trunk/libs/math/test/test_zeta.hpp Tue Jul 23 04:23:29 2013 (r85130)
+++ trunk/libs/math/test/test_zeta.hpp 2013-07-23 07:09:47 EDT (Tue, 23 Jul 2013) (r85131)
@@ -31,7 +31,6 @@
    // test zeta(T) against data:
    //
    using namespace std;
- typedef typename T::value_type row_type;
    typedef Real value_type;
 
    std::cout << test_name << " with type " << type_name << std::endl;


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