Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53945 - sandbox/monotonic/libs/monotonic/test
From: christian.schladetsch_at_[hidden]
Date: 2009-06-15 18:47:01


Author: cschladetsch
Date: 2009-06-15 18:47:00 EDT (Mon, 15 Jun 2009)
New Revision: 53945
URL: http://svn.boost.org/trac/boost/changeset/53945

Log:
fix for fail to pass storage to Map in test_map_list

Text files modified:
   sandbox/monotonic/libs/monotonic/test/monotonic.vcproj | 24 ++++++++++++++++++++++++
   sandbox/monotonic/libs/monotonic/test/test_map_list.cpp | 5 +++--
   2 files changed, 27 insertions(+), 2 deletions(-)

Modified: sandbox/monotonic/libs/monotonic/test/monotonic.vcproj
==============================================================================
--- sandbox/monotonic/libs/monotonic/test/monotonic.vcproj (original)
+++ sandbox/monotonic/libs/monotonic/test/monotonic.vcproj 2009-06-15 18:47:00 EDT (Mon, 15 Jun 2009)
@@ -267,6 +267,14 @@
                         RelativePath=".\test_bubble_sort.cpp"
>
                         <FileConfiguration
+ Name="Debug|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
                                 Name="Release|Win32"
                                 ExcludedFromBuild="true"
>
@@ -279,6 +287,14 @@
                         RelativePath=".\test_dupe.cpp"
>
                         <FileConfiguration
+ Name="Debug|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
                                 Name="Release|Win32"
                                 ExcludedFromBuild="true"
>
@@ -291,6 +307,14 @@
                         RelativePath=".\test_map_list.cpp"
>
                         <FileConfiguration
+ Name="Debug|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
                                 Name="Release|Win32"
                                 ExcludedFromBuild="true"
>

Modified: sandbox/monotonic/libs/monotonic/test/test_map_list.cpp
==============================================================================
--- sandbox/monotonic/libs/monotonic/test/test_map_list.cpp (original)
+++ sandbox/monotonic/libs/monotonic/test/test_map_list.cpp 2009-06-15 18:47:00 EDT (Mon, 15 Jun 2009)
@@ -25,7 +25,7 @@
 // amount of work the next frame.
 void test_map_list_realtime()
 {
- monotonic::inline_storage<1000000> storage;
+ monotonic::inline_storage<1000000> storage;// = new monotonic::inline_storage<10000000>;
         const size_t outter_loops = 10*1000;
         const size_t inner_loops = 10000;
 
@@ -33,7 +33,7 @@
         for (size_t n = 0; n < outter_loops; ++n)
         {
                 typedef std::map<int, std::list<int, monotonic::allocator<int> >, std::less<int>, monotonic::allocator<int> > Map;
- Map map;
+ Map map(std::less<int>(), storage);
                 test_map_list_impl(inner_loops, map);
                 storage.reset(); ///<<< reset the memory usage to zero
         }
@@ -49,6 +49,7 @@
         }
         double e1 = t1.elapsed();
         cout << "test_map_list: std: " << e1 << endl;
+ //delete storage;
 }
 
 //EOF


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