aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-06-03 14:53:10 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-06-03 15:04:56 +0300
commit5882b9e0fd689c6e3a8ff3401a57c23c4a860476 (patch)
treecf5e9bbe830d3b3584cd4ce55148ab22060e0afc /contrib/libs
parent697a72df5ee9e6217621b5e6e8f5d0abda7a326f (diff)
downloadydb-5882b9e0fd689c6e3a8ff3401a57c23c4a860476.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/libs')
-rw-r--r--contrib/libs/pybind11/include/pybind11/detail/internals.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/libs/pybind11/include/pybind11/detail/internals.h b/contrib/libs/pybind11/include/pybind11/detail/internals.h
index 049dbcaa19..122d800ebc 100644
--- a/contrib/libs/pybind11/include/pybind11/detail/internals.h
+++ b/contrib/libs/pybind11/include/pybind11/detail/internals.h
@@ -132,7 +132,8 @@ inline void tls_replace_value(PYBIND11_TLS_KEY_REF key, void *value) {
// which works. If not under a known-good stl, provide our own name-based hash and equality
// functions that use the type name.
#if (PYBIND11_INTERNALS_VERSION <= 4 && defined(__GLIBCXX__)) \
- || (PYBIND11_INTERNALS_VERSION >= 5 && !defined(_LIBCPP_VERSION))
+ || (PYBIND11_INTERNALS_VERSION >= 5 && !defined(_LIBCPP_VERSION)) \
+ || defined(PYBIND11_TYPEINFO_NATIVE_HASH)
inline bool same_type(const std::type_info &lhs, const std::type_info &rhs) { return lhs == rhs; }
using type_hash = std::hash<std::type_index>;
using type_equal_to = std::equal_to<std::type_index>;