From 5f95e4d9deea415b89796b43a3b29f42c5f99087 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 30 May 2003 17:00:14 +0000 Subject: [PATCH] Support for noncopyable function objects (boost::signal) [SVN r18615] --- include/boost/bind/apply.hpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/boost/bind/apply.hpp b/include/boost/bind/apply.hpp index d903581..6c38d61 100644 --- a/include/boost/bind/apply.hpp +++ b/include/boost/bind/apply.hpp @@ -4,7 +4,7 @@ // // apply.hpp // -// Copyright (c) 2002 Peter Dimov and Multi Media Ltd. +// Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd. // // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. @@ -19,52 +19,52 @@ template struct apply { typedef R result_type; - template result_type operator()(F f) const + template result_type operator()(F & f) const { return f(); } - template result_type operator()(F f, A1 & a1) const + template result_type operator()(F & f, A1 & a1) const { return f(a1); } - template result_type operator()(F f, A1 & a1, A2 & a2) const + template result_type operator()(F & f, A1 & a1, A2 & a2) const { return f(a1, a2); } - template result_type operator()(F f, A1 & a1, A2 & a2, A3 & a3) const + template result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3) const { return f(a1, a2, a3); } - template result_type operator()(F f, A1 & a1, A2 & a2, A3 & a3, A4 & a4) const + template result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3, A4 & a4) const { return f(a1, a2, a3, a4); } - template result_type operator()(F f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5) const + template result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5) const { return f(a1, a2, a3, a4, a5); } - template result_type operator()(F f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6) const + template result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6) const { return f(a1, a2, a3, a4, a5, a6); } - template result_type operator()(F f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7) const + template result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7) const { return f(a1, a2, a3, a4, a5, a6, a7); } - template result_type operator()(F f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7, A8 & a8) const + template result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7, A8 & a8) const { return f(a1, a2, a3, a4, a5, a6, a7, a8); } - template result_type operator()(F f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7, A8 & a8, A9 & a9) const + template result_type operator()(F & f, A1 & a1, A2 & a2, A3 & a3, A4 & a4, A5 & a5, A6 & a6, A7 & a7, A8 & a8, A9 & a9) const { return f(a1, a2, a3, a4, a5, a6, a7, a8, a9); }