Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70319 - trunk/boost/random/detail
From: hartmut.kaiser_at_[hidden]
Date: 2011-03-21 13:15:11


Author: hkaiser
Date: 2011-03-21 13:15:10 EDT (Mon, 21 Mar 2011)
New Revision: 70319
URL: http://svn.boost.org/trac/boost/changeset/70319

Log:
Preventing macro substitution
Text files modified:
   trunk/boost/random/detail/uniform_int_float.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/random/detail/uniform_int_float.hpp
==============================================================================
--- trunk/boost/random/detail/uniform_int_float.hpp (original)
+++ trunk/boost/random/detail/uniform_int_float.hpp 2011-03-21 13:15:10 EDT (Mon, 21 Mar 2011)
@@ -56,7 +56,7 @@
 
     result_type operator()()
     {
- base_result range = static_cast<base_result>(max())+1;
+ base_result range = static_cast<base_result>((max)())+1;
         return static_cast<result_type>(_rng() * range);
     }
 


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