Use ~Functor instead of ~function_type always, since it makes Borland

and vc6 and who knows what else happy.


[SVN r32832]
This commit is contained in:
Dave Abrahams
2006-02-11 19:08:25 +00:00
parent 9fe1351ab7
commit 87ad11583c

View File

@ -286,11 +286,8 @@ namespace boost {
} else if (op == destroy_functor_tag) {
functor_type* out_functor =
reinterpret_cast<functor_type*>(&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<const std::type_info*>(out_buffer.const_obj_ptr);