Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-11-13 11:15:27


Author: johnmaddock
Date: 2007-11-13 11:15:27 EST (Tue, 13 Nov 2007)
New Revision: 41062
URL: http://svn.boost.org/trac/boost/changeset/41062

Log:
Ooops, disable long double overloads when there is no long double support (Borland fix).
Text files modified:
   trunk/boost/math/special_functions/expm1.hpp | 2 ++
   trunk/boost/math/special_functions/log1p.hpp | 2 ++
   2 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/boost/math/special_functions/expm1.hpp
==============================================================================
--- trunk/boost/math/special_functions/expm1.hpp (original)
+++ trunk/boost/math/special_functions/expm1.hpp 2007-11-13 11:15:27 EST (Tue, 13 Nov 2007)
@@ -253,11 +253,13 @@
 {
    return expm1<double>(z);
 }
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
 inline long double expm1(long double z)
 {
    return expm1<long double>(z);
 }
 #endif
+#endif
 
 } // namespace math
 } // namespace boost

Modified: trunk/boost/math/special_functions/log1p.hpp
==============================================================================
--- trunk/boost/math/special_functions/log1p.hpp (original)
+++ trunk/boost/math/special_functions/log1p.hpp 2007-11-13 11:15:27 EST (Tue, 13 Nov 2007)
@@ -112,11 +112,13 @@
 {
    return log1p<double>(z);
 }
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
 inline long double log1p(long double z)
 {
    return log1p<long double>(z);
 }
 #endif
+#endif
 
 #ifdef log1p
 # ifndef BOOST_HAS_LOG1P


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