|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56651 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2009-10-08 12:19:24
Author: jewillco
Date: 2009-10-08 12:19:23 EDT (Thu, 08 Oct 2009)
New Revision: 56651
URL: http://svn.boost.org/trac/boost/changeset/56651
Log:
Changed to use pointer to underlying RNG
Text files modified:
trunk/boost/graph/erdos_renyi_generator.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/graph/erdos_renyi_generator.hpp
==============================================================================
--- trunk/boost/graph/erdos_renyi_generator.hpp (original)
+++ trunk/boost/graph/erdos_renyi_generator.hpp 2009-10-08 12:19:23 EDT (Thu, 08 Oct 2009)
@@ -125,7 +125,7 @@
: gen(), rand_vertex(1. - prob), n(n), allow_self_loops(loops), src(0)
, tgt_index(vertices_size_type(-1)), prob(prob)
{
- this->gen.reset(new uniform_01<RandomGenerator>(gen));
+ this->gen.reset(new uniform_01<RandomGenerator*>(&gen));
if (prob == 0.0) {src = (std::numeric_limits<vertices_size_type>::max)(); return;}
next();
@@ -181,7 +181,7 @@
if (src == n) src = (std::numeric_limits<vertices_size_type>::max)();
}
- shared_ptr<uniform_01<RandomGenerator> > gen;
+ shared_ptr<uniform_01<RandomGenerator*> > gen;
geometric_distribution<vertices_size_type> rand_vertex;
vertices_size_type n;
bool allow_self_loops;
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