Refactors map test case
authorPeizhao Ou <peizhaoo@uci.edu>
Tue, 30 Jan 2018 09:05:09 +0000 (01:05 -0800)
committerPeizhao Ou <peizhaoo@uci.edu>
Tue, 30 Jan 2018 09:05:09 +0000 (01:05 -0800)
test/stress/sequential/sequential-map/insdelfind/map_insdelfind.h

index 165a1d1480a21efed0a55bac4af7d35a25cbe217..4a8305345ceb5f02a0a24a82f2348b74e5a8efe0 100644 (file)
@@ -207,8 +207,8 @@ namespace map {
         template <class Map>
         void run_test()
         {
-            Map testMap( *this );
-            do_test( testMap );
+          std::unique_ptr<Map> testMap(new Map(*this));
+          do_test(*testMap);
         }
 
         template <class Map>