Fixed internal statistics printing for map/set stress test
[libcds.git] / test / stress / set / set_type.h
index 2925cf0128a4c750b34ecc680b3d1d7c2c4aa22d..cbf62c278106dd756e0632c8551566ca38c43128 100644 (file)
@@ -289,9 +289,17 @@ namespace set {
     // print_stat
     // *************************************************
 
+    struct empty_stat {};
+    static inline cds_test::property_stream& operator <<( cds_test::property_stream& o, empty_stat const& )
+    {
+        return o;
+    }
+
     template <typename Set>
-    static inline void print_stat( cds_test::property_stream&, Set const& /*s*/ )
-    {}
+    static inline void print_stat( cds_test::property_stream& o, Set const& s )
+    {
+        o << s.statistics();
+    }
 
 
     //*******************************************************