From 9a06b9a4877091c3392a67d134ec4cea0896f838 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Fri, 12 Mar 2021 19:27:19 +0000 Subject: [PATCH] hash_set/hash_map no longer function from gcc-10 onwards. --- include/boost/config/stdlib/libstdcpp3.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/config/stdlib/libstdcpp3.hpp b/include/boost/config/stdlib/libstdcpp3.hpp index f01ff5f9..688ee198 100644 --- a/include/boost/config/stdlib/libstdcpp3.hpp +++ b/include/boost/config/stdlib/libstdcpp3.hpp @@ -167,6 +167,15 @@ # define BOOST_LIBSTDCXX_VERSION 40300 #endif +#if (BOOST_LIBSTDCXX_VERSION >= 100000) && defined(BOOST_HAS_HASH) +// +// hash_set/hash_map deprecated and have terminal bugs: +// +#undef BOOST_HAS_HAS +#undef BOOST_HAS_SET_HEADER +#undef BOOST_HAS_MAP_HEADER +#endif + #if (BOOST_LIBSTDCXX_VERSION < 50100) // libstdc++ does not define this function as it's deprecated in C++11, but clang still looks for it, // defining it here is a terrible cludge, but should get things working: