From 8c198b1c909ecd7a0844e0c38927eb101534c82f Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 30 Jan 2002 03:18:15 +0000 Subject: [PATCH] function_template.hpp: - Ensure initialization of stateless function objects [SVN r12561] --- include/boost/function/function_template.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }