$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r51378 - trunk/boost/functional
From: tschwinger_at_[hidden]
Date: 2009-02-22 01:21:35
Author: t_schwinger
Date: 2009-02-22 01:21:34 EST (Sun, 22 Feb 2009)
New Revision: 51378
URL: http://svn.boost.org/trac/boost/changeset/51378
Log:
prevents vicious type deduction for array arguments
Text files modified: 
   trunk/boost/functional/lightweight_forward_adapter.hpp |     6 ++++--                                  
   1 files changed, 4 insertions(+), 2 deletions(-)
Modified: trunk/boost/functional/lightweight_forward_adapter.hpp
==============================================================================
--- trunk/boost/functional/lightweight_forward_adapter.hpp	(original)
+++ trunk/boost/functional/lightweight_forward_adapter.hpp	2009-02-22 01:21:34 EST (Sun, 22 Feb 2009)
@@ -231,7 +231,8 @@
 
             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 @@
             }
             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 _;