Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-08-29 05:00:31


Author: johnmaddock
Date: 2007-08-29 05:00:28 EDT (Wed, 29 Aug 2007)
New Revision: 39048
URL: http://svn.boost.org/trac/boost/changeset/39048

Log:
Fix for Darwin: not all versions have 106-bit long doubles.
Text files modified:
   sandbox/math_toolkit/boost/math/tools/precision.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/math_toolkit/boost/math/tools/precision.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/tools/precision.hpp (original)
+++ sandbox/math_toolkit/boost/math/tools/precision.hpp 2007-08-29 05:00:28 EDT (Wed, 29 Aug 2007)
@@ -148,7 +148,7 @@
    return std::numeric_limits<T>::epsilon();
 }
 
-#if defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
+#if (defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)) && (LDBL_MANT_DIG == 106)
 template <>
 inline long double epsilon<long double>(const mpl::true_& BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(long double))
 {


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