Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70064 - trunk/boost/random/detail
From: steven_at_[hidden]
Date: 2011-03-17 12:28:28


Author: steven_watanabe
Date: 2011-03-17 12:28:25 EDT (Thu, 17 Mar 2011)
New Revision: 70064
URL: http://svn.boost.org/trac/boost/changeset/70064

Log:
Make sure that integer_log2 works on more than just msvc and gcc.
Text files modified:
   trunk/boost/random/detail/integer_log2.hpp | 2 ++
   1 files changed, 2 insertions(+), 0 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-03-17 12:28:25 EDT (Thu, 17 Mar 2011)
@@ -28,6 +28,8 @@
 #define BOOST_RANDOM_DETAIL_CONSTEXPR __forceinline
 #elif defined(__GNUC__)
 #define BOOST_RANDOM_DETAIL_CONSTEXPR __attribute__((const)) __attribute__((always_inline))
+#else
+#define BOOST_RANDOM_DETAIL_CONSTEXPR inline
 #endif
 
 template<int Shift>


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