diff --git a/Rx/v2/src/rxcpp/rx-util.hpp b/Rx/v2/src/rxcpp/rx-util.hpp index cde8ea86c..cf641812e 100644 --- a/Rx/v2/src/rxcpp/rx-util.hpp +++ b/Rx/v2/src/rxcpp/rx-util.hpp @@ -996,22 +996,16 @@ struct filtered_hash::value>::type> }; template struct filtered_hash>::value>::type> { - using argument_type = T; - using result_type = std::size_t; - - result_type operator()(argument_type const & dur) const + std::size_t operator()(T const & dur) const { - return std::hash{}(dur.count()); + return std::hash{}(dur.count()); } }; template struct filtered_hash>::value>::type> { - using argument_type = T; - using result_type = std::size_t; - - result_type operator()(argument_type const & tp) const + std::size_t operator()(T const & tp) const { - return std::hash{}(tp.time_since_epoch().count()); + return std::hash{}(tp.time_since_epoch().count()); } }; @@ -1022,8 +1016,6 @@ struct is_hashable template struct is_hashable::result_type, - typename filtered_hash::argument_type, typename rxu::callable_result, T>::type>::type> : std::true_type {};