[mlpack-svn] r10905 - mlpack/trunk/src/mlpack/core/math
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Dec 20 11:27:35 EST 2011
Author: rcurtin
Date: 2011-12-20 11:27:35 -0500 (Tue, 20 Dec 2011)
New Revision: 10905
Modified:
mlpack/trunk/src/mlpack/core/math/random.hpp
Log:
Fix >= Boost 1.47 issues.
Modified: mlpack/trunk/src/mlpack/core/math/random.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/math/random.hpp 2011-12-20 16:27:13 UTC (rev 10904)
+++ mlpack/trunk/src/mlpack/core/math/random.hpp 2011-12-20 16:27:35 UTC (rev 10905)
@@ -22,7 +22,7 @@
// Global random object.
extern boost::random::mt19937 randGen;
// Global uniform distribution.
- extern boost::random::uniform_01 randUniformDist;
+ extern boost::random::uniform_01<> randUniformDist;
#else
// Global random object.
extern boost::mt19937 randGen;
@@ -44,7 +44,7 @@
inline double Random(double lo, double hi)
{
#if BOOST_VERSION >= 104700
- boost::random::uniform_real_distribution dist(lo, hi);
+ boost::random::uniform_real_distribution<> dist(lo, hi);
#else
boost::uniform_real<> dist(lo, hi);
#endif
@@ -58,7 +58,7 @@
inline int RandInt(int hiExclusive)
{
#if BOOST_VERSION >= 104700
- boost::random::uniform_int_distribution dist(0, hiExclusive - 1);
+ boost::random::uniform_int_distribution<> dist(0, hiExclusive - 1);
#else
boost::uniform_int<> dist(0, hiExclusive - 1);
#endif
@@ -72,7 +72,7 @@
inline int RandInt(int lo, int hiExclusive)
{
#if BOOST_VERSION >= 104700
- boost::random::uniform_int_distribution dist(lo, hiExclusive - 1);
+ boost::random::uniform_int_distribution<> dist(lo, hiExclusive - 1);
#else
boost::uniform_int<> dist(0, hiExclusive - 1);
#endif
More information about the mlpack-svn
mailing list