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); }