Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61700 - in trunk/boost/math: distributions special_functions
From: dgregor_at_[hidden]
Date: 2010-04-30 03:10:58


Author: dgregor
Date: 2010-04-30 03:10:56 EDT (Fri, 30 Apr 2010)
New Revision: 61700
URL: http://svn.boost.org/trac/boost/changeset/61700

Log:
Eliminate redundant (and incorrect) using declarations at function scope.

Text files modified:
   trunk/boost/math/distributions/non_central_beta.hpp | 1 -
   trunk/boost/math/distributions/non_central_chi_squared.hpp | 1 -
   trunk/boost/math/special_functions/log1p.hpp | 1 -
   3 files changed, 0 insertions(+), 3 deletions(-)

Modified: trunk/boost/math/distributions/non_central_beta.hpp
==============================================================================
--- trunk/boost/math/distributions/non_central_beta.hpp (original)
+++ trunk/boost/math/distributions/non_central_beta.hpp 2010-04-30 03:10:56 EDT (Fri, 30 Apr 2010)
@@ -591,7 +591,6 @@
                Policy()))
                   return (RealType)r;
 
- BOOST_MATH_STD_USING
             if(l == 0)
                return pdf(boost::math::beta_distribution<RealType, Policy>(dist.alpha(), dist.beta()), x);
             return policies::checked_narrowing_cast<RealType, forwarding_policy>(

Modified: trunk/boost/math/distributions/non_central_chi_squared.hpp
==============================================================================
--- trunk/boost/math/distributions/non_central_chi_squared.hpp (original)
+++ trunk/boost/math/distributions/non_central_chi_squared.hpp 2010-04-30 03:10:56 EDT (Fri, 30 Apr 2010)
@@ -485,7 +485,6 @@
                Policy()))
                   return (RealType)r;
 
- BOOST_MATH_STD_USING
          if(l == 0)
             return pdf(boost::math::chi_squared_distribution<RealType, forwarding_policy>(dist.degrees_of_freedom()), x);
 

Modified: trunk/boost/math/special_functions/log1p.hpp
==============================================================================
--- trunk/boost/math/special_functions/log1p.hpp (original)
+++ trunk/boost/math/special_functions/log1p.hpp 2010-04-30 03:10:56 EDT (Fri, 30 Apr 2010)
@@ -74,7 +74,6 @@
 { // The function returns the natural logarithm of 1 + x.
    typedef typename tools::promote_args<T>::type result_type;
    BOOST_MATH_STD_USING
- using std::abs;
 
    static const char* function = "boost::math::log1p<%1%>(%1%)";
 


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