Update libstdcpp3.hpp to use has_include to check for has_set/hash_map presence.

Correct doc typo.
Update tests to use BOOST_HASH_SET_HEADER.
Fixes https://github.com/boostorg/config/issues/349.
This commit is contained in:
jzmaddock
2020-12-18 10:53:01 +00:00
parent 9022672932
commit b4a0ebc265
5 changed files with 19 additions and 20 deletions
@@ -94,6 +94,20 @@
#endif
#endif
#if defined(__has_include)
#if defined(BOOST_HAS_HASH)
#if !__has_include(BOOST_HASH_SET_HEADER)
#undef BOOST_HAS_HAS
#undef BOOST_HAS_SET_HEADER
#undef BOOST_HAS_MAP_HEADER
#endif
#if !__has_include(BOOST_SLIST_HEADER)
#undef BOOST_HAS_SLIST
#undef BOOST_HAS_SLIST_HEADER
#endif
#endif
#endif
//
// Decide whether we have C++11 support turned on:
//