From 5b740913d04654487138a5f1e58a924cf2c36c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Wed, 12 Nov 2025 16:28:44 +0300 Subject: [PATCH] mdbx++: add missing `std::hash>`. --- mdbx.h++ | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mdbx.h++ b/mdbx.h++ index 36621791..7934a270 100644 --- a/mdbx.h++ +++ b/mdbx.h++ @@ -6415,6 +6415,12 @@ template <> struct hash<::mdbx::slice> { MDBX_CXX14_CONSTEXPR size_t operator()(::mdbx::slice const &slice) const noexcept { return slice.hash_value(); } }; +template struct hash<::mdbx::buffer> { + MDBX_CXX14_CONSTEXPR size_t operator()(::mdbx::buffer const &buffer) const noexcept { + return buffer.hash_value(); + } +}; + /// end cxx_api @} } // namespace std