Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49806 - in branches/release: . libs/accumulators/test
From: eric_at_[hidden]
Date: 2008-11-16 16:22:52


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

Log:
add missing namespace qualifications
Properties modified:
   branches/release/ (props changed)
Text files modified:
   branches/release/libs/accumulators/test/p_square_cumulative_distribution.cpp | 2 +-
   branches/release/libs/accumulators/test/weighted_p_square_cum_dist.cpp | 4 ++--
   2 files changed, 3 insertions(+), 3 deletions(-)

Modified: branches/release/libs/accumulators/test/p_square_cumulative_distribution.cpp
==============================================================================
--- branches/release/libs/accumulators/test/p_square_cumulative_distribution.cpp (original)
+++ branches/release/libs/accumulators/test/p_square_cumulative_distribution.cpp 2008-11-16 16:22:52 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: branches/release/libs/accumulators/test/weighted_p_square_cum_dist.cpp
==============================================================================
--- branches/release/libs/accumulators/test/weighted_p_square_cum_dist.cpp (original)
+++ branches/release/libs/accumulators/test/weighted_p_square_cum_dist.cpp 2008-11-16 16:22:52 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