Howto enable hashing for std::chrono::year_month and std::chrono::year_month_day? #1522
Unanswered
maximiliank
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it ok to add a specialization of
AbslHashValue
in the namespaceabsl::hash_internal
forstd::chrono::year_month
/std::chrono::year_month_day
? Doing something in an*_internal
namespace seems dangerous.If I add the following, I can use those types in
std::unordered_map
withabsl::Hash<KeyType>
:Is there a way to enable hashing for those types without adding a specialization in an internal namespace?
Beta Was this translation helpful? Give feedback.
All reactions