|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77456 - trunk/libs/heap/test
From: tim_at_[hidden]
Date: 2012-03-21 13:26:10
Author: timblechmann
Date: 2012-03-21 13:26:09 EDT (Wed, 21 Mar 2012)
New Revision: 77456
URL: http://svn.boost.org/trac/boost/changeset/77456
Log:
heap: fix testsuite
fix ticket #6723
Text files modified:
trunk/libs/heap/test/mutable_heap_tests.hpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
Modified: trunk/libs/heap/test/mutable_heap_tests.hpp
==============================================================================
--- trunk/libs/heap/test/mutable_heap_tests.hpp (original)
+++ trunk/libs/heap/test/mutable_heap_tests.hpp 2012-03-21 13:26:09 EDT (Wed, 21 Mar 2012)
@@ -215,7 +215,7 @@
void pri_queue_test_erase(void)
{
#ifdef USE_BOOST_RANDOM
- boost::mt19937 rng;
+ boost::mt19937 rng;
#endif
for (int i = 0; i != test_size; ++i)
@@ -227,12 +227,12 @@
for (int j = 0; j != i; ++j)
{
#ifdef USE_BOOST_RANDOM
- boost::uniform_int<> range(0, data.size() - 1);
- boost::variate_generator<boost::mt19937&, boost::uniform_int<> > gen(rng, range);
+ boost::uniform_int<> range(0, data.size() - 1);
+ boost::variate_generator<boost::mt19937&, boost::uniform_int<> > gen(rng, range);
- int index = gen();
+ int index = gen();
#else
- int index = rand() % (data.size() - 1);
+ int index = std::rand() % (data.size() - 1);
#endif
q.erase(handles[index]);
handles.erase(handles.begin() + index);
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