Merge pull request #430 from boostorg/gcc-12-unary_function

Define BOOST_NO_CXX98_FUNCTION_BASE for gcc-12 in C++17 mode or later.
This commit is contained in:
jzmaddock
2022-05-10 18:42:46 +01:00
committed by GitHub

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