mirror of
https://github.com/boostorg/function.git
synced 2025-07-23 09:27:14 +02:00
function_template.hpp:
- Ensure initialization of stateless function objects [SVN r12561]
This commit is contained in:
@ -139,7 +139,7 @@ namespace boost {
|
|||||||
{
|
{
|
||||||
static R invoke(any_pointer BOOST_FUNCTION_COMMA BOOST_FUNCTION_PARMS)
|
static R invoke(any_pointer BOOST_FUNCTION_COMMA BOOST_FUNCTION_PARMS)
|
||||||
{
|
{
|
||||||
FunctionObj f;
|
FunctionObj f = FunctionObj();
|
||||||
return f(BOOST_FUNCTION_ARGS);
|
return f(BOOST_FUNCTION_ARGS);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -155,7 +155,7 @@ namespace boost {
|
|||||||
BOOST_FUNCTION_PARMS)
|
BOOST_FUNCTION_PARMS)
|
||||||
|
|
||||||
{
|
{
|
||||||
FunctionObj f;
|
FunctionObj f = FunctionObj();
|
||||||
f(BOOST_FUNCTION_ARGS);
|
f(BOOST_FUNCTION_ARGS);
|
||||||
return unusable();
|
return unusable();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user