[Boost-bugs] [Boost C++ Libraries] #12522: boost/math/tools/minima.hpp pass functor by ref

Subject: [Boost-bugs] [Boost C++ Libraries] #12522: boost/math/tools/minima.hpp pass functor by ref
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-12 23:15:53


#12522: boost/math/tools/minima.hpp pass functor by ref
------------------------------+--------------------------
 Reporter: ch816772@… | Owner: johnmaddock
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: math
  Version: Boost 1.61.0 | Severity: Optimization
 Keywords: |
------------------------------+--------------------------
 Would it be better to pass the functor f by ref for the following

 template <class F, class T>
 std::pair<T, T> brent_find_minima(F f, T min, T max, int bits);

 template <class F, class T>
 std::pair<T, T> brent_find_minima(F f, T min, T max, int bits,
 boost::uintmax_t& max_iter);

 To instead be:

 template <class F, class T>
 std::pair<T, T> brent_find_minima(F& f, T min, T max, int bits);

 template <class F, class T>
 std::pair<T, T> brent_find_minima(F& f, T min, T max, int bits,
 boost::uintmax_t& max_iter);

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12522>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC