summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libcxx/test/support/Counter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcxx/test/support/Counter.h b/libcxx/test/support/Counter.h
index 602f35f7067..4a658c58c06 100644
--- a/libcxx/test/support/Counter.h
+++ b/libcxx/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());}
};
}
OpenPOWER on IntegriCloud