Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78559 - trunk/boost/math/special_functions
From: john_at_[hidden]
Date: 2012-05-23 13:18:50


Author: johnmaddock
Date: 2012-05-23 13:18:49 EDT (Wed, 23 May 2012)
New Revision: 78559
URL: http://svn.boost.org/trac/boost/changeset/78559

Log:
Move default arguments to forward declaration.
Fixes #6930.
Text files modified:
   trunk/boost/math/special_functions/jacobi_elliptic.hpp | 2 +-
   trunk/boost/math/special_functions/math_fwd.hpp | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/math/special_functions/jacobi_elliptic.hpp
==============================================================================
--- trunk/boost/math/special_functions/jacobi_elliptic.hpp (original)
+++ trunk/boost/math/special_functions/jacobi_elliptic.hpp 2012-05-23 13:18:49 EDT (Wed, 23 May 2012)
@@ -140,7 +140,7 @@
 }
 
 template <class T>
-inline typename tools::promote_args<T>::type jacobi_elliptic(T k, T theta, T* pcn = 0, T* pdn = 0)
+inline typename tools::promote_args<T>::type jacobi_elliptic(T k, T theta, T* pcn, T* pdn)
 {
    return jacobi_elliptic(k, theta, pcn, pdn, policies::policy<>());
 }

Modified: trunk/boost/math/special_functions/math_fwd.hpp
==============================================================================
--- trunk/boost/math/special_functions/math_fwd.hpp (original)
+++ trunk/boost/math/special_functions/math_fwd.hpp 2012-05-23 13:18:49 EDT (Wed, 23 May 2012)
@@ -742,7 +742,7 @@
    typename tools::promote_args<T>::type jacobi_elliptic(T k, T theta, T* pcn, T* pdn, const Policy&);
 
    template <class T>
- typename tools::promote_args<T>::type jacobi_elliptic(T k, T theta, T* pcn, T* pdn);
+ typename tools::promote_args<T>::type jacobi_elliptic(T k, T theta, T* pcn = 0, T* pdn = 0);
 
    template <class U, class T, class Policy>
    typename tools::promote_args<T, U>::type jacobi_sn(U k, T theta, const Policy& pol);


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