Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54285 - branches/release/boost/math/special_functions
From: john_at_[hidden]
Date: 2009-06-23 12:40:24


Author: johnmaddock
Date: 2009-06-23 12:40:23 EDT (Tue, 23 Jun 2009)
New Revision: 54285
URL: http://svn.boost.org/trac/boost/changeset/54285

Log:
Fix lookup ambiguity.
Fixes #3207.
Text files modified:
   branches/release/boost/math/special_functions/log1p.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: branches/release/boost/math/special_functions/log1p.hpp
==============================================================================
--- branches/release/boost/math/special_functions/log1p.hpp (original)
+++ branches/release/boost/math/special_functions/log1p.hpp 2009-06-23 12:40:23 EDT (Tue, 23 Jun 2009)
@@ -384,7 +384,7 @@
    if(u == 1.0)
       return x;
    else
- return log(u)*(x/(u-1.0));
+ return ::log(u)*(x/(u-1.0));
 }
 template <class Policy>
 inline float log1p(float x, const Policy& pol)
@@ -404,7 +404,7 @@
    if(u == 1.0)
       return x;
    else
- return log(u)*(x/(u-1.0));
+ return ::logl(u)*(x/(u-1.0));
 }
 #endif
 


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