From 26a8d3803170137f6e44ba26b118f4332d021dcb Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 12 May 2022 12:32:08 +0100 Subject: [PATCH] unary_function is deprecated from C++11 onwards. See https://github.com/boostorg/container_hash/issues/22. --- include/boost/config/stdlib/libstdcpp3.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/config/stdlib/libstdcpp3.hpp b/include/boost/config/stdlib/libstdcpp3.hpp index d1eeb3a8..22198836 100644 --- a/include/boost/config/stdlib/libstdcpp3.hpp +++ b/include/boost/config/stdlib/libstdcpp3.hpp @@ -389,9 +389,9 @@ extern "C" char *gets (char *__s); #if BOOST_LIBSTDCXX_VERSION >= 120000 // -// Unary function is now deprecated in C++17 and later: +// Unary function is now deprecated in C++11 and later: // -#if __cplusplus >= 201703L +#if __cplusplus >= 201103L #define BOOST_NO_CXX98_FUNCTION_BASE #endif #endif