[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:18:44 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: taher (nullhook)
<details>
<summary>Changes</summary>
This changes the "fundamentally attractive" random value to align with the 2022 CODATA gravitational constant. Still the same - just slightly more accurate.
---
Full diff: https://github.com/llvm/llvm-project/pull/171561.diff
1 Files Affected:
- (modified) libcxx/include/__variant/monostate.h (+1-1)
``````````diff
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.
}
};
``````````
</details>
https://github.com/llvm/llvm-project/pull/171561
More information about the libcxx-commits
mailing list