Boost C++ Libraries: Ticket #12522: boost/math/tools/minima.hpp pass functor by ref https://svn.boost.org/trac10/ticket/12522 <p> Would it be better to pass the functor f by ref for the following </p> <p> template &lt;class F, class T&gt; std::pair&lt;T, T&gt; brent_find_minima(F f, T min, T max, int bits); </p> <p> template &lt;class F, class T&gt; std::pair&lt;T, T&gt; brent_find_minima(F f, T min, T max, int bits, boost::uintmax_t&amp; max_iter); </p> <p> To instead be: </p> <p> template &lt;class F, class T&gt; std::pair&lt;T, T&gt; brent_find_minima(F&amp; f, T min, T max, int bits); </p> <p> template &lt;class F, class T&gt; std::pair&lt;T, T&gt; brent_find_minima(F&amp; f, T min, T max, int bits, boost::uintmax_t&amp; max_iter); </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12522 Trac 1.4.3