diff --git a/devel/boost-libs/Makefile b/devel/boost-libs/Makefile index 5ce2aa66d57f5..04cf1418b04a7 100644 --- a/devel/boost-libs/Makefile +++ b/devel/boost-libs/Makefile @@ -1,5 +1,5 @@ PORTNAME= boost-libs -PORTREVISION?= 0 +PORTREVISION?= 1 COMMENT= Free portable C++ libraries (without Boost.Python) WWW= https://www.boost.org/ diff --git a/devel/boost-libs/files/patch-boost_functional.hpp b/devel/boost-libs/files/patch-boost_functional.hpp new file mode 100644 index 0000000000000..81bd330690878 --- /dev/null +++ b/devel/boost-libs/files/patch-boost_functional.hpp @@ -0,0 +1,28 @@ +From 6a573e4b8333ee63ee62ce95558c3667348db233 Mon Sep 17 00:00:00 2001 +From: Glen Fernandes +Date: Mon, 17 Apr 2023 06:59:02 -0400 +Subject: [PATCH] Define unary_function and binary_function unconditionally + +--- boost/functional.hpp.orig 2023-04-10 13:47:33 UTC ++++ boost/functional.hpp +@@ -21,7 +21,6 @@ namespace boost + namespace functional + { + namespace detail { +-#if defined(_HAS_AUTO_PTR_ETC) && !_HAS_AUTO_PTR_ETC + // std::unary_function and std::binary_function were both removed + // in C++17. + +@@ -39,12 +38,6 @@ namespace boost + typedef Arg2 second_argument_type; + typedef Result result_type; + }; +-#else +- // Use the standard objects when we have them. +- +- using std::unary_function; +- using std::binary_function; +-#endif + } + } +