From 87ad11583ce6e5fa7e7cabb9b7d85a75f7ee391a Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sat, 11 Feb 2006 19:08:25 +0000 Subject: [PATCH] Use ~Functor instead of ~function_type always, since it makes Borland and vc6 and who knows what else happy. [SVN r32832] --- include/boost/function/function_base.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index f6ed06e..ae83343 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -286,11 +286,8 @@ namespace boost { } else if (op == destroy_functor_tag) { functor_type* out_functor = reinterpret_cast(&out_buffer.data); -#if BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x581) ) + // Some compilers (Borland, vc6, ...) are unhappy with ~functor_type. out_functor->~Functor(); -#else - out_functor->~functor_type(); -#endif } else /* op == check_functor_type_tag */ { const std::type_info& check_type = *static_cast(out_buffer.const_obj_ptr);