[libcxx-commits] [libcxx] [libc++][NFC] Add a static assertion to document an assumption in std::hash (PR #114440)

Sergei Barannikov via libcxx-commits libcxx-commits at lists.llvm.org
Sun Nov 24 20:38:36 PST 2024


s-barannikov wrote:

I happen to have such a target (32-bit `size_t`, 64-bit `long`). What should I do to resolve the static assertion failure?
I guess 16-bit targets will also suffer, where `size_t` is usually `unsigned int` (that is, 16-bit), but `long` can't be less than 32 bits.


https://github.com/llvm/llvm-project/pull/114440


More information about the libcxx-commits mailing list