Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54284 - trunk/boost/math/special_functions
From: john_at_[hidden]
Date: 2009-06-23 12:39:51


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

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

Modified: trunk/boost/math/special_functions/log1p.hpp
==============================================================================
--- trunk/boost/math/special_functions/log1p.hpp (original)
+++ trunk/boost/math/special_functions/log1p.hpp 2009-06-23 12:39:50 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