From ee250bda6c6bf3f2ca6003cd865b5779bfee3ca3 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 12 Feb 2003 22:05:17 +0000 Subject: [PATCH] For first_argument_type/second_argument_type and argument_type adaptations, use reference-to-const for the arguments (because this is what the standard binders do) [SVN r957] --- include/boost/ref.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/ref.hpp b/include/boost/ref.hpp index fba17d2..1b55c7e 100644 --- a/include/boost/ref.hpp +++ b/include/boost/ref.hpp @@ -259,7 +259,8 @@ public: typename get_result_type >::type - operator()(first_argument_type a1, second_argument_type a2) const + operator()(const first_argument_type& a1, + const second_argument_type& a2) const { return this->get()(a1, a2); } @@ -316,7 +317,7 @@ public: using inherited::operator(); typename get_result_type >::type - operator()(argument_type a1) const + operator()(const argument_type& a1) const { return this->get()(a1); }