function_template.hpp:

- Changed reinterpret_casts between pointers to member functions
    to C-style casts for MIPSpro.


[SVN r11767]
This commit is contained in:
Douglas Gregor
2001-11-22 00:34:29 +00:00
parent a657e5c812
commit c64a2f3492

View File

@ -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);
} }