summaryrefslogtreecommitdiff
path: root/test/support/Counter.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-07-23 20:47:26 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-07-23 20:47:26 +0000
commit51072bd6bf79ef2bc6a922079bff57c31c1effbc (patch)
tree91a2effbc9e6f80bdbbf9eb70e06c51ad0867ea0 /test/support/Counter.h
parentbb5e33f003797b67974a8893f7f2930fc51b8210 (diff)
Notes
Diffstat (limited to 'test/support/Counter.h')
-rw-r--r--test/support/Counter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/support/Counter.h b/test/support/Counter.h
index 2bc3642f5059..eb6e04e72ef6 100644
--- a/test/support/Counter.h
+++ b/test/support/Counter.h
@@ -13,7 +13,7 @@
#include <functional> // for std::hash
struct Counter_base { static int gConstructed; };
-
+
template <typename T>
class Counter : public Counter_base
{
@@ -27,7 +27,7 @@ public:
Counter& operator=(Counter&& rhs) { ++gConstructed; data_ = std::move(rhs.data_); return *this; }
#endif
~Counter() { --gConstructed; }
-
+
const T& get() const {return data_;}
bool operator==(const Counter& x) const {return data_ == x.data_;}