[libcxx-commits] [libcxx] Update hash value constant for std::monostate (PR #171561)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 9 20:17:56 PST 2025
https://github.com/nullhook created https://github.com/llvm/llvm-project/pull/171561
This changes the "fundamentally attractive" random value to align with the 2022 CODATA gravitational constant. Still the same - just slightly more accurate.
>From 6ea287c148f7614f9d7498fa2a9e08062444e478 Mon Sep 17 00:00:00 2001
From: Taher <8665427+nullhook at users.noreply.github.com>
Date: Tue, 9 Dec 2025 20:13:40 -0800
Subject: [PATCH] Update hash value constant for std::monostate
This changes the "fundamentally attractive" random value to
align with the 2022 CODATA gravitational constant.
Still the same - just slightly more accurate.
---
libcxx/include/__variant/monostate.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcxx/include/__variant/monostate.h b/libcxx/include/__variant/monostate.h
index 3939e42a94772..17e6adf88a87b 100644
--- a/libcxx/include/__variant/monostate.h
+++ b/libcxx/include/__variant/monostate.h
@@ -55,7 +55,7 @@ struct hash<monostate> {
# endif
inline _LIBCPP_HIDE_FROM_ABI size_t operator()(const monostate&) const noexcept {
- return 66740831; // return a fundamentally attractive random value.
+ return 66743015; // return a fundamentally attractive random value.
}
};
More information about the libcxx-commits
mailing list