View | Details | Raw Unified | Return to bug 271488
Collapse All | Expand All

(-)b/devel/boost-libs/files/patch-boost_functional.hpp (+28 lines)
Added Link Here
1
From 6a573e4b8333ee63ee62ce95558c3667348db233 Mon Sep 17 00:00:00 2001
2
From: Glen Fernandes <glen.fernandes@gmail.com>
3
Date: Mon, 17 Apr 2023 06:59:02 -0400
4
Subject: [PATCH] Define unary_function and binary_function unconditionally
5
6
--- boost/functional.hpp.orig	2023-04-10 13:47:33 UTC
7
+++ boost/functional.hpp
8
@@ -21,7 +21,6 @@ namespace boost
9
     namespace functional
10
     {
11
         namespace detail {
12
-#if defined(_HAS_AUTO_PTR_ETC) && !_HAS_AUTO_PTR_ETC
13
             // std::unary_function and std::binary_function were both removed
14
             // in C++17.
15
 
16
@@ -39,12 +38,6 @@ namespace boost
17
                 typedef Arg2 second_argument_type;
18
                 typedef Result result_type;
19
             };
20
-#else
21
-            // Use the standard objects when we have them.
22
-
23
-            using std::unary_function;
24
-            using std::binary_function;
25
-#endif
26
         }
27
     }
28
 

Return to bug 271488