|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76080 - trunk/boost/math/tools
From: john_at_[hidden]
Date: 2011-12-20 11:21:44
Author: johnmaddock
Date: 2011-12-20 11:21:44 EST (Tue, 20 Dec 2011)
New Revision: 76080
URL: http://svn.boost.org/trac/boost/changeset/76080
Log:
Misc small workarounds to allow multiprecision tests to function.
Text files modified:
trunk/boost/math/tools/big_constant.hpp | 5 +++++
trunk/boost/math/tools/config.hpp | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
Modified: trunk/boost/math/tools/big_constant.hpp
==============================================================================
--- trunk/boost/math/tools/big_constant.hpp (original)
+++ trunk/boost/math/tools/big_constant.hpp 2011-12-20 11:21:44 EST (Tue, 20 Dec 2011)
@@ -19,6 +19,11 @@
return static_cast<T>(v);
}
template <class T>
+inline T make_big_value(long double v, const char*, mpl::true_ const&, mpl::true_ const&)
+{
+ return static_cast<T>(v);
+}
+template <class T>
inline T make_big_value(long double, const char* s, mpl::false_ const&, mpl::false_ const&)
{
return boost::lexical_cast<T>(s);
Modified: trunk/boost/math/tools/config.hpp
==============================================================================
--- trunk/boost/math/tools/config.hpp (original)
+++ trunk/boost/math/tools/config.hpp 2011-12-20 11:21:44 EST (Tue, 20 Dec 2011)
@@ -132,7 +132,7 @@
#endif // defined BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
-#if defined(__SUNPRO_CC) || defined(__hppa) || defined(__GNUC__)
+#if (defined(__SUNPRO_CC) || defined(__hppa) || defined(__GNUC__)) && !defined(BOOST_MATH_SMALL_CONSTANT)
// Sun's compiler emits a hard error if a constant underflows,
// as does aCC on PA-RISC, while gcc issues a large number of warnings:
# define BOOST_MATH_SMALL_CONSTANT(x) 0
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