Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76065 - trunk/libs/heap/test
From: tim_at_[hidden]
Date: 2011-12-19 11:23:25


Author: timblechmann
Date: 2011-12-19 11:23:25 EST (Mon, 19 Dec 2011)
New Revision: 76065
URL: http://svn.boost.org/trac/boost/changeset/76065

Log:
heap: possible fix for sun compiler

Text files modified:
   trunk/libs/heap/test/mutable_heap_tests.hpp | 4 +++-
   1 files changed, 3 insertions(+), 1 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 2011-12-19 11:23:25 EST (Mon, 19 Dec 2011)
@@ -3,6 +3,8 @@
 
 #ifdef USE_BOOST_RANDOM
 #include <boost/random.hpp>
+#else
+#include <cstdlib>
 #endif
 
 #include "common_heap_tests.hpp"
@@ -230,7 +232,7 @@
 
                         int index = gen();
 #else
- int index = random() % (data.size() - 1);
+ int index = 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