Add explicit #include <unordered_map> for subinterpreter support

The subinterpreter branch uses std::unordered_map but relied on
transitive includes. Add an explicit include for robustness.
This commit is contained in:
Ralf W. Grosse-Kunstleve
2025-12-19 21:56:30 -08:00
parent ddb6dd4c73
commit 3fb52dff6a

View File

@@ -12,6 +12,9 @@
#if defined(Py_GIL_DISABLED) || defined(PYBIND11_HAS_SUBINTERPRETER_SUPPORT)
# include <atomic>
#endif
#ifdef PYBIND11_HAS_SUBINTERPRETER_SUPPORT
# include <unordered_map>
#endif
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)