mirror of
https://github.com/boostorg/function.git
synced 2025-07-30 04:47:14 +02:00
Workaround for Borland compilers, from Alistair
[SVN r32394]
This commit is contained in:
@ -286,7 +286,11 @@ namespace boost {
|
|||||||
} else if (op == destroy_functor_tag) {
|
} else if (op == destroy_functor_tag) {
|
||||||
functor_type* out_functor =
|
functor_type* out_functor =
|
||||||
reinterpret_cast<functor_type*>(&out_buffer.data);
|
reinterpret_cast<functor_type*>(&out_buffer.data);
|
||||||
|
#if BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x581) )
|
||||||
|
out_functor->~Functor();
|
||||||
|
#else
|
||||||
out_functor->~functor_type();
|
out_functor->~functor_type();
|
||||||
|
#endif
|
||||||
} else /* op == check_functor_type_tag */ {
|
} else /* op == check_functor_type_tag */ {
|
||||||
const std::type_info& check_type =
|
const std::type_info& check_type =
|
||||||
*static_cast<const std::type_info*>(out_buffer.const_obj_ptr);
|
*static_cast<const std::type_info*>(out_buffer.const_obj_ptr);
|
||||||
|
Reference in New Issue
Block a user