mirror of
https://github.com/boostorg/function.git
synced 2025-07-23 01:17: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)
|
||||
{
|
||||
FunctionObj f;
|
||||
FunctionObj f = FunctionObj();
|
||||
return f(BOOST_FUNCTION_ARGS);
|
||||
}
|
||||
};
|
||||
@ -155,7 +155,7 @@ namespace boost {
|
||||
BOOST_FUNCTION_PARMS)
|
||||
|
||||
{
|
||||
FunctionObj f;
|
||||
FunctionObj f = FunctionObj();
|
||||
f(BOOST_FUNCTION_ARGS);
|
||||
return unusable();
|
||||
}
|
||||
|
Reference in New Issue
Block a user