projects
/
libcds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed internal statistics printing for map/set stress test
[libcds.git]
/
test
/
stress
/
map
/
map_type.h
diff --git
a/test/stress/map/map_type.h
b/test/stress/map/map_type.h
index d0d03bf1523b40d152c56ec847e58930c0068eca..08373a6621ebedc1ce9d0307aa7dbf1761774eb6 100644
(file)
--- a/
test/stress/map/map_type.h
+++ b/
test/stress/map/map_type.h
@@
-206,12
+206,20
@@
namespace map {
return seed;
}
};
return seed;
}
};
-
};
};
+ struct empty_stat {};
+ static inline cds_test::property_stream& operator <<( cds_test::property_stream& o, empty_stat const& )
+ {
+ return o;
+ }
+
template <typename Map>
template <typename Map>
- static inline void print_stat( cds_test::property_stream&, Map const& /*m*/ )
- {}
+ static inline void print_stat( cds_test::property_stream& o, Map const& m )
+ {
+ o << m.statistics();
+ }
+
template <typename Map>
static inline void check_before_cleanup( Map& /*m*/ )
template <typename Map>
static inline void check_before_cleanup( Map& /*m*/ )