mirror of
https://github.com/boostorg/function.git
synced 2025-07-30 04:47:14 +02:00
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:
@ -286,11 +286,8 @@ 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) )
|
// Some compilers (Borland, vc6, ...) are unhappy with ~functor_type.
|
||||||
out_functor->~Functor();
|
out_functor->~Functor();
|
||||||
#else
|
|
||||||
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