File: 60.patch

package info (click to toggle)
boost1.90 1.90.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 593,120 kB
  • sloc: cpp: 4,190,908; xml: 196,648; python: 34,618; ansic: 23,145; asm: 5,468; sh: 3,774; makefile: 1,161; perl: 1,020; sql: 728; ruby: 676; yacc: 478; java: 77; lisp: 24; csh: 6
file content (26 lines) | stat: -rw-r--r-- 1,214 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 4384bf0ecb9eb13cdc1727b7c43d085445e37c3d Mon Sep 17 00:00:00 2001
From: NatUni <155886653+NatUni@users.noreply.github.com>
Date: Tue, 9 Jan 2024 17:47:56 -0500
Subject: [PATCH] Fix issue documented in Debian bug #1059133
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

I am surely out of my depth here, but this Works4Me™. See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059133
---
 libs/function/include/boost/function/function_base.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: boost/libs/function/include/boost/function/function_base.hpp
===================================================================
--- boost.orig/libs/function/include/boost/function/function_base.hpp
+++ boost/libs/function/include/boost/function/function_base.hpp
@@ -537,7 +537,7 @@ public:
                       detail::function::check_functor_type_tag);
       // GCC 2.95.3 gets the CV qualifiers wrong here, so we
       // can't do the static_cast that we should do.
-      return static_cast<const Functor*>(type_result.members.obj_ptr);
+      return reinterpret_cast<const Functor*>(type_result.members.obj_ptr);
     }
 
   template<typename F>