Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77478 - sandbox/big_number/boost/multiprecision
From: john_at_[hidden]
Date: 2012-03-22 13:32:44


Author: johnmaddock
Date: 2012-03-22 13:32:43 EDT (Thu, 22 Mar 2012)
New Revision: 77478
URL: http://svn.boost.org/trac/boost/changeset/77478

Log:
Fix GCC Random number and Miller Rabin build errors.
Text files modified:
   sandbox/big_number/boost/multiprecision/random.hpp | 14 ++++++++++++++
   1 files changed, 14 insertions(+), 0 deletions(-)

Modified: sandbox/big_number/boost/multiprecision/random.hpp
==============================================================================
--- sandbox/big_number/boost/multiprecision/random.hpp (original)
+++ sandbox/big_number/boost/multiprecision/random.hpp 2012-03-22 13:32:43 EDT (Thu, 22 Mar 2012)
@@ -9,6 +9,20 @@
 #define BOOST_MP_RANDOM_HPP
 
 #include <boost/multiprecision/mp_number.hpp>
+
+namespace boost{ namespace random{ namespace detail{
+//
+// This is a horrible hack: this declaration has to appear before the definition of
+// uniform_int_distribution, otherwise it won't be used...
+// Need to find a better solution, like make Boost.Random safe to use with
+// UDT's and depricate/remove this header altogether.
+//
+template<class Engine, class Backend, bool ExpressionTemplates>
+boost::multiprecision::mp_number<Backend, ExpressionTemplates>
+ generate_uniform_int(Engine& eng, const boost::multiprecision::mp_number<Backend, ExpressionTemplates>& min_value, const boost::multiprecision::mp_number<Backend, ExpressionTemplates>& max_value);
+
+}}}
+
 #include <boost/random.hpp>
 #include <boost/mpl/eval_if.hpp>
 


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