Rename insert() to set() to avoid confusion with std::map::insert()
[junction.git] / samples / MallocTest / MallocTest.cpp
index 37efc77f15df6388078ce8c1d4bb7299c3da4ecf..a6695d2a8b44905e0c0c015e9c69e7b4fc0d0c0a 100644 (file)
@@ -28,7 +28,7 @@ int main() {
         std::cout << "Population=" << population << ", inUse=" << TURF_HEAP.getInUseBytes() << std::endl;
 #endif
         for (; population < i * 5000; population++)
-            map.insert(population + 1, (void*) ((population << 2) | 3));
+            map.set(population + 1, (void*) ((population << 2) | 3));
     }
 
     return 0;