Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54090 - sandbox/monotonic/libs/monotonic/test
From: christian.schladetsch_at_[hidden]
Date: 2009-06-19 00:29:36


Author: cschladetsch
Date: 2009-06-19 00:29:33 EDT (Fri, 19 Jun 2009)
New Revision: 54090
URL: http://svn.boost.org/trac/boost/changeset/54090

Log:
fixes for GCC
Text files modified:
   sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp
==============================================================================
--- sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp (original)
+++ sandbox/monotonic/libs/monotonic/test/compare_memory_pool.cpp 2009-06-19 00:29:33 EDT (Fri, 19 Jun 2009)
@@ -149,6 +149,7 @@
         {
                 typedef std::vector<int, typename Rebind<Alloc, int>::type> Vector;
                 typedef std::set<Vector, std::less<Vector>, typename Rebind<Alloc, Vector>::type> Set;
+ int dummy = 0;
                 Set set;
                 for (size_t n = 0; n < count; ++n)
                 {
@@ -156,8 +157,9 @@
                         Vector vector(size);
                         generate_n(vector.begin(), size, rand);
                         set.insert(vector);
+ dummy += set.size();
                 }
- return 0;
+ return dummy;
         }
 };
 
@@ -297,7 +299,7 @@
 void compare_memory_pool()
 {
         cout << "test_set_vector";
- PrintResults(compare_memory_pool(50, 1000, 5, test_set_vector()));
+ PrintResults(compare_memory_pool(500, 1000, 10, test_set_vector()));
         cout << "test_dupe_list";
         PrintResults(compare_memory_pool(500, 2000, 10, test_dupe_list()));
         cout << "test_dupe_vector";


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