From 4545234f942155fabd9cac0d74021deb4fbfbfd8 Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Tue, 19 Feb 2013 19:52:03 +0000 Subject: [PATCH] Handle const lambda functors for nullary result_of. Fixes #6914. [SVN r83020] --- include/boost/lambda/detail/lambda_functors.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/boost/lambda/detail/lambda_functors.hpp b/include/boost/lambda/detail/lambda_functors.hpp index db229ec..9ce29ad 100644 --- a/include/boost/lambda/detail/lambda_functors.hpp +++ b/include/boost/lambda/detail/lambda_functors.hpp @@ -308,6 +308,12 @@ struct result_of()> typedef typename boost::lambda::lambda_functor::nullary_return_type type; }; +template +struct result_of()> +{ + typedef typename boost::lambda::lambda_functor::nullary_return_type type; +}; + #endif template @@ -316,6 +322,12 @@ struct tr1_result_of()> typedef typename boost::lambda::lambda_functor::nullary_return_type type; }; +template +struct tr1_result_of()> +{ + typedef typename boost::lambda::lambda_functor::nullary_return_type type; +}; + } // is_placeholder