From eac8fab2cd3216096d05c4c631e13ef138c5c4fa Mon Sep 17 00:00:00 2001 From: Tobias Schwinger Date: Sun, 22 Feb 2009 06:21:34 +0000 Subject: [PATCH] prevents vicious type deduction for array arguments [SVN r51378] --- include/boost/functional/lightweight_forward_adapter.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/boost/functional/lightweight_forward_adapter.hpp b/include/boost/functional/lightweight_forward_adapter.hpp index 98509a8..d21ac42 100644 --- a/include/boost/functional/lightweight_forward_adapter.hpp +++ b/include/boost/functional/lightweight_forward_adapter.hpp @@ -231,7 +231,8 @@ namespace boost template< BOOST_PP_ENUM_PARAMS(N,typename T) > inline typename lightweight_forward_adapter_result::template apply< - MD const (BOOST_PP_ENUM_PARAMS(N,T)) >::type + MD const (BOOST_PP_ENUM_BINARY_PARAMS(N, + T,const& BOOST_PP_INTERCEPT)) >::type operator()(BOOST_PP_ENUM_BINARY_PARAMS(N,T,const& a)) const { typedef lightweight_forward_adapter_result _; @@ -240,7 +241,8 @@ namespace boost } template< BOOST_PP_ENUM_PARAMS(N,typename T) > inline typename lightweight_forward_adapter_result::template apply< - MD (BOOST_PP_ENUM_PARAMS(N,T)) >::type + MD (BOOST_PP_ENUM_BINARY_PARAMS(N, + T,const& BOOST_PP_INTERCEPT)) >::type operator()(BOOST_PP_ENUM_BINARY_PARAMS(N,T,const& a)) { typedef lightweight_forward_adapter_result _;