From 2b4f81ca674fbc8b79ca6fd0f51c7820f18b9692 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 13 Jan 2006 02:45:33 +0000 Subject: [PATCH] Workaround for GCC 2.95.3 [SVN r32302] --- include/boost/function/function_base.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index b852f6b..d596b74 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -315,8 +315,10 @@ namespace boost { # endif // BOOST_NO_STD_ALLOCATOR if (op == clone_functor_tag) { + // GCC 2.95.3 gets the CV qualifiers wrong here, so we + // can't do the static_cast that we should do. const functor_type* f = - static_cast(in_buffer.obj_ptr); + (const functor_type*)(in_buffer.obj_ptr); // Clone the functor # ifndef BOOST_NO_STD_ALLOCATOR