function<double(double)> - cmath

Simply bringing this to the attention of the function maintainer, in
case it hasn't been mentioned before, and it has any relevance (I can
live with it).
#include <cmath>
#include

On Sat, Mar 19, 2011 at 2:18 AM, er
Simply bringing this to the attention of the function maintainer, in case it hasn't been mentioned before, and it has any relevance (I can live with it).
#include <cmath> #include
typedef function f_; // error C2440 with MSVC 2010. No such problems with GCC 4.2 f_ f = log10;
typedef double(*fp)(double); f_ f = fp( log10 ); // clumsy, but solves it
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Probably you need to use boost::bind?
participants (3)
-
er
-
Joel Falcou
-
Kulti