diff --git a/include/cista/hashing.h b/include/cista/hashing.h index 1f91a1bb..4efae6c9 100644 --- a/include/cista/hashing.h +++ b/include/cista/hashing.h @@ -142,6 +142,14 @@ struct hashing> { } }; +template +struct hashing> { + hash_t operator()(std::chrono::time_point const& el, + hash_t const seed = BASE_HASH) { + return hashing{}(el.time_since_epoch(), seed); + } +}; + template struct hashing> { constexpr hash_t operator()(std::pair const& el,