19 Mar
2011
19 Mar
'11
2:18 a.m.
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 <boost/function.hpp> typedef function<double(double)> 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