mirror of
https://github.com/boostorg/function.git
synced 2025-07-23 17:37:14 +02:00
function_template.hpp:
- Use a C-style cast to deal with constness easily [SVN r12060]
This commit is contained in:
@ -101,7 +101,7 @@ namespace boost {
|
|||||||
BOOST_FUNCTION_PARMS)
|
BOOST_FUNCTION_PARMS)
|
||||||
|
|
||||||
{
|
{
|
||||||
FunctionObj* f = static_cast<FunctionObj*>(function_obj_ptr.obj_ptr);
|
FunctionObj* f = (FunctionObj*)(function_obj_ptr.obj_ptr);
|
||||||
return (*f)(BOOST_FUNCTION_ARGS);
|
return (*f)(BOOST_FUNCTION_ARGS);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -118,7 +118,7 @@ namespace boost {
|
|||||||
BOOST_FUNCTION_PARMS)
|
BOOST_FUNCTION_PARMS)
|
||||||
|
|
||||||
{
|
{
|
||||||
FunctionObj* f = static_cast<FunctionObj*>(function_obj_ptr.obj_ptr);
|
FunctionObj* f = (FunctionObj*)(function_obj_ptr.obj_ptr);
|
||||||
(*f)(BOOST_FUNCTION_ARGS);
|
(*f)(BOOST_FUNCTION_ARGS);
|
||||||
return unusable();
|
return unusable();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user