Workaround for Borland compilers, from Alistair

[SVN r32394]
This commit is contained in:
Douglas Gregor
2006-01-24 13:57:25 +00:00
parent 58b61efb5f
commit 9fe1351ab7

View File

@ -286,7 +286,11 @@ 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) )
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);