diff --git a/beast/hash/hash_append.h b/beast/hash/hash_append.h index 6cab78cc71..5cd5c85b1c 100644 --- a/beast/hash/hash_append.h +++ b/beast/hash/hash_append.h @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -472,6 +473,24 @@ hash_append (Hasher& h, std::shared_ptr const& p) noexcept hash_append(h, p.get()); } +// chrono + +template +inline +void +hash_append (Hasher& h, std::chrono::duration const& d) noexcept +{ + hash_append(h, d.count()); +} + +template +inline +void +hash_append (Hasher& h, std::chrono::time_point const& tp) noexcept +{ + hash_append(h, tp.time_since_epoch()); +} + // variadic template