diff --git a/include/boost/function/function_template.hpp b/include/boost/function/function_template.hpp index 07ffae1..51b6721 100644 --- a/include/boost/function/function_template.hpp +++ b/include/boost/function/function_template.hpp @@ -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(); }