Hi all,

First and foremost thank you so much for carrying this forward!

Il 26/11/25 10:22, Jonathan Wakely ha scritto:
The C++26 draft is quite explicit:

"The specialization hash<chrono::duration<Rep, Period>> is enabled
(22.10.19) if and only if hash<Rep> is enabled."

So hash<duration<R, P>> should not use hash<remove_cv_t<R>>, and
therefore hash<duration<const int>> should be disabled.

I think this was an oversight on my part when I wrote the paper: I hadn't considered the possibility of cv-qualified representations for the duration. Of course LWG4481 makes the problem go away.

Thanks,

--
Giuseppe D'Angelo

Attachment: smime.p7s
Description: Firma crittografica S/MIME

Reply via email to