[PATCH] libstdc++: hashing support for chrono value classes (P2592R2)
Giuseppe D'Angelo
giuseppe.dangelo@kdab.com
Wed Sep 4 16:34:21 GMT 2024
Hello,
The attached patch implements P2592, adding std::hash specializations
for std::chrono classes.
One aspect I'm quite unhappy with is the hash combiner I've used. I'm
not sure if there's some longer-term goal for libstdc++ here -- would
you prefer to roll something à la Boost.HashCombine / P0814?
Not only it's likely to be cheaper, but it would also be more
constexpr-friendly, in preparation of constexpr std::hash (P3372).
As usual, any feedback is appreciated :)
Thank you,
--
Giuseppe D'Angelo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libstdc-hashing-support-for-chrono-value-classes-P25.patch
Type: text/x-patch
Size: 20428 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20240904/c3465d35/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4244 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20240904/c3465d35/attachment-0001.p7s>
More information about the Libstdc++
mailing list