From 3f0e2b478b3e1e47e60041f8d286793c02ada924 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 14 Apr 2009 17:51:34 +0000 Subject: [PATCH] Add stream output to the count test helper for unordered. [SVN r52397] --- test/helpers/count.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/helpers/count.hpp b/test/helpers/count.hpp index 11e00e9f..0589586e 100644 --- a/test/helpers/count.hpp +++ b/test/helpers/count.hpp @@ -6,6 +6,8 @@ #if !defined(BOOST_UNORDERED_TEST_HELPERS_COUNT_HEAD) #define BOOST_UNORDERED_TEST_HELPERS_COUNT_HEAD +#include + namespace test { struct object_count { int instances; @@ -36,6 +38,11 @@ namespace test { bool operator!=(object_count const& x) const { return !(*this == x); } + + friend std::ostream& operator<<(std::ostream& out, object_count const& c) { + out<<"[instances: "<