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]
This commit is contained in:
Douglas Gregor
2003-02-12 22:05:17 +00:00
parent 7bfc1a8d02
commit ee250bda6c

View File

@@ -259,7 +259,8 @@ public:
typename get_result_type<Result, typename get_result_type<Result,
get_result_type2<T, first_argument_type, get_result_type2<T, first_argument_type,
second_argument_type> >::type second_argument_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); return this->get()(a1, a2);
} }
@@ -316,7 +317,7 @@ public:
using inherited::operator(); using inherited::operator();
typename get_result_type<Result, get_result_type1<T, argument_type> >::type typename get_result_type<Result, get_result_type1<T, argument_type> >::type
operator()(argument_type a1) const operator()(const argument_type& a1) const
{ {
return this->get()(a1); return this->get()(a1);
} }