Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72799 - trunk/boost/random/detail
From: dnljms_at_[hidden]
Date: 2011-06-29 13:49:28


Author: danieljames
Date: 2011-06-29 13:49:27 EDT (Wed, 29 Jun 2011)
New Revision: 72799
URL: http://svn.boost.org/trac/boost/changeset/72799

Log:
Random: disable incorrect use of constexpr for now.

Text files modified:
   trunk/boost/random/detail/integer_log2.hpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/boost/random/detail/integer_log2.hpp
==============================================================================
--- trunk/boost/random/detail/integer_log2.hpp (original)
+++ trunk/boost/random/detail/integer_log2.hpp 2011-06-29 13:49:27 EDT (Wed, 29 Jun 2011)
@@ -22,7 +22,9 @@
 namespace random {
 namespace detail {
 
-#if !defined(BOOST_NO_CONSTEXPR)
+// Daniel James: Disabled use of constexpr because integer_log2_impl is not a
+// valid constexpr.
+#if 0 && !defined(BOOST_NO_CONSTEXPR)
 #define BOOST_RANDOM_DETAIL_CONSTEXPR constexpr
 #elif defined(BOOST_MSVC)
 #define BOOST_RANDOM_DETAIL_CONSTEXPR __forceinline


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