Define BOOST_NO_CXX98_FUNCTION_BASE for gcc-12 in C++17 mode or later.

Fixes: https://github.com/boostorg/container_hash/issues/22.
This commit is contained in:
jzmaddock
2022-05-10 18:03:38 +01:00
parent 2fb424497c
commit 89ff6355e1

View File

@@ -387,6 +387,15 @@ extern "C" char *gets (char *__s);
#define BOOST_NO_CXX20_HDR_BIT
#endif
#if BOOST_LIBSTDCXX_VERSION >= 120000
//
// Unary function is now deprecated in C++17 and later:
//
#if __cplusplus >= 201703L
#define BOOST_NO_CXX98_FUNCTION_BASE
#endif
#endif
#ifndef __cpp_impl_coroutine
# define BOOST_NO_CXX20_HDR_COROUTINE
#endif