Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49805 - trunk/libs/accumulators/test
From: eric_at_[hidden]
Date: 2008-11-16 16:17:31


Author: eric_niebler
Date: 2008-11-16 16:17:28 EST (Sun, 16 Nov 2008)
New Revision: 49805
URL: http://svn.boost.org/trac/boost/changeset/49805

Log:
add missing namespace qualifications, fixes #2502
Text files modified:
   trunk/libs/accumulators/test/p_square_cumulative_distribution.cpp | 2 +-
   trunk/libs/accumulators/test/weighted_p_square_cum_dist.cpp | 4 ++--
   2 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/libs/accumulators/test/p_square_cumulative_distribution.cpp
==============================================================================
--- trunk/libs/accumulators/test/p_square_cumulative_distribution.cpp (original)
+++ trunk/libs/accumulators/test/p_square_cumulative_distribution.cpp 2008-11-16 16:17:28 EST (Sun, 16 Nov 2008)
@@ -63,7 +63,7 @@
     {
         // problem with small results: epsilon is relative (in percent), not absolute!
         if ( histogram[i].second > 0.001 )
- BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram[i].first / sqrt(2.0) )), histogram[i].second, epsilon );
+ BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram[i].first / std::sqrt(2.0) )), histogram[i].second, epsilon );
     }
 }
 

Modified: trunk/libs/accumulators/test/weighted_p_square_cum_dist.cpp
==============================================================================
--- trunk/libs/accumulators/test/weighted_p_square_cum_dist.cpp (original)
+++ trunk/libs/accumulators/test/weighted_p_square_cum_dist.cpp 2008-11-16 16:17:28 EST (Sun, 16 Nov 2008)
@@ -82,10 +82,10 @@
 
         // check upper region of distribution
         if ( histogram_upper[i].second > 0.1 )
- BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram_upper[i].first / sqrt(2.0) )), histogram_upper[i].second, epsilon );
+ BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram_upper[i].first / std::sqrt(2.0) )), histogram_upper[i].second, epsilon );
         // check lower region of distribution
         if ( histogram_lower[i].second < -0.1 )
- BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram_lower[i].first / sqrt(2.0) )), histogram_lower[i].second, epsilon );
+ BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram_lower[i].first / std::sqrt(2.0) )), histogram_lower[i].second, epsilon );
     }
 }
 


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