Index: test/support/Counter.h =================================================================== --- test/support/Counter.h +++ test/support/Counter.h @@ -45,8 +45,10 @@ template struct hash > - : public std::unary_function, std::size_t> { + typedef Counter argument_type; + typedef std::size_t result_type; + std::size_t operator()(const Counter& x) const {return std::hash(x.get());} }; }