mirror of
https://github.com/boostorg/function.git
synced 2025-07-23 17:37:14 +02:00
function_template.hpp:
- Changed reinterpret_casts between pointers to member functions to C-style casts for MIPSpro. [SVN r11767]
This commit is contained in:
@ -142,8 +142,8 @@ namespace boost {
|
|||||||
BOOST_FUNCTION_COMMA
|
BOOST_FUNCTION_COMMA
|
||||||
BOOST_FUNCTION_PARMS)
|
BOOST_FUNCTION_PARMS)
|
||||||
{
|
{
|
||||||
MemFunctionPtr f =
|
// Was a reinterpret_cast<>, but not all compilers handle it
|
||||||
reinterpret_cast<MemFunctionPtr>(mem_function_ptr.mem_func_ptr);
|
MemFunctionPtr f = (MemFunctionPtr)(mem_function_ptr.mem_func_ptr);
|
||||||
return mem_fn(f)(BOOST_FUNCTION_ARGS);
|
return mem_fn(f)(BOOST_FUNCTION_ARGS);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -159,8 +159,8 @@ namespace boost {
|
|||||||
BOOST_FUNCTION_COMMA
|
BOOST_FUNCTION_COMMA
|
||||||
BOOST_FUNCTION_PARMS)
|
BOOST_FUNCTION_PARMS)
|
||||||
{
|
{
|
||||||
MemFunctionPtr f =
|
// Was a reinterpret_cast<>, but not all compilers handle it
|
||||||
reinterpret_cast<MemFunctionPtr>(mem_function_ptr.mem_func_ptr);
|
MemFunctionPtr f = (MemFunctionPtr)(mem_function_ptr.mem_func_ptr);
|
||||||
mem_fn(f)(BOOST_FUNCTION_ARGS);
|
mem_fn(f)(BOOST_FUNCTION_ARGS);
|
||||||
return unusable();
|
return unusable();
|
||||||
}
|
}
|
||||||
@ -448,8 +448,9 @@ namespace boost {
|
|||||||
invoker = &invoker_type::invoke;
|
invoker = &invoker_type::invoke;
|
||||||
manager = &detail::function::functor_manager<MemberPtr,
|
manager = &detail::function::functor_manager<MemberPtr,
|
||||||
Allocator>::manage;
|
Allocator>::manage;
|
||||||
|
// Was a reinterpret_cast<>, but not all compilers handle it
|
||||||
functor = manager(detail::function::any_pointer(
|
functor = manager(detail::function::any_pointer(
|
||||||
reinterpret_cast<stored_mem_func_type>(f)
|
(stored_mem_func_type)(f)
|
||||||
),
|
),
|
||||||
detail::function::clone_functor);
|
detail::function::clone_functor);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user