Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2007-11-06 11:58:46


Author: johnmaddock
Date: 2007-11-06 11:58:46 EST (Tue, 06 Nov 2007)
New Revision: 40843
URL: http://svn.boost.org/trac/boost/changeset/40843

Log:
Disabled static assertions for compilers that don't support them.
Text files modified:
   trunk/boost/math/distributions/find_scale.hpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/boost/math/distributions/find_scale.hpp
==============================================================================
--- trunk/boost/math/distributions/find_scale.hpp (original)
+++ trunk/boost/math/distributions/find_scale.hpp 2007-11-06 11:58:46 EST (Tue, 06 Nov 2007)
@@ -109,8 +109,10 @@
       // << quantile(Dist(), c.param1) //q
       // << endl;
 
+#if !defined(BOOST_NO_SFINAE) && !BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x590))
       BOOST_STATIC_ASSERT(::boost::math::tools::is_distribution<Dist>::value);
       BOOST_STATIC_ASSERT(::boost::math::tools::is_scaled_distribution<Dist>::value);
+#endif
       static const char* function = "boost::math::find_scale<Dist, Policy>(complement(%1%, %1%, %1%, Policy))";
 
       // Checks on arguments, as not complemented version,
@@ -161,8 +163,10 @@
       // << quantile(Dist(), c.param1) //q
       // << endl;
 
+#if !defined(BOOST_NO_SFINAE) && !BOOST_WORKAROUND(__SUNPRO_CC, BOOST_TESTED_AT(0x590))
       BOOST_STATIC_ASSERT(::boost::math::tools::is_distribution<Dist>::value);
       BOOST_STATIC_ASSERT(::boost::math::tools::is_scaled_distribution<Dist>::value);
+#endif
       static const char* function = "boost::math::find_scale<Dist, Policy>(complement(%1%, %1%, %1%, Policy))";
 
       // Checks on arguments, as not complemented version,


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