aboutsummaryrefslogtreecommitdiff
path: root/test/support/Counter.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/Counter.h')
-rw-r--r--test/support/Counter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/support/Counter.h b/test/support/Counter.h
index 602f35f70671..4a658c58c064 100644
--- a/test/support/Counter.h
+++ b/test/support/Counter.h
@@ -45,8 +45,10 @@ namespace std {
template <class T>
struct hash<Counter<T> >
- : public std::unary_function<Counter<T>, std::size_t>
{
+ typedef Counter<T> argument_type;
+ typedef std::size_t result_type;
+
std::size_t operator()(const Counter<T>& x) const {return std::hash<T>(x.get());}
};
}