From d078b8df74f658409aabac3ee36ae7f2d5d06cc5 Mon Sep 17 00:00:00 2001 From: Dmitry Kazakov Date: Thu, 16 Feb 2023 15:07:33 +0300 Subject: [PATCH] Fix compilation with clang-15 std::unary_function and std::binary_function are removed from the standard in C++17. --- include/boost/functional.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/functional.hpp b/include/boost/functional.hpp index 644307847..3c60e0c22 100644 --- a/include/boost/functional.hpp +++ b/include/boost/functional.hpp @@ -21,7 +21,7 @@ namespace boost namespace functional { namespace detail { -#if defined(_HAS_AUTO_PTR_ETC) && !_HAS_AUTO_PTR_ETC +#if (defined(_HAS_AUTO_PTR_ETC) && !_HAS_AUTO_PTR_ETC) || defined(BOOST_NO_CXX98_FUNCTION_BASE) // std::unary_function and std::binary_function were both removed // in C++17.