
19 Nov
2008
19 Nov
'08
9:04 p.m.
AMDG Thorsten Ottosen wrote:
Hm. Right, but I did get that from reading the docs. That could be said more directly IMO. And the fix to the code would be to say
return static_cast<ResultType>(f(arg1,....))
would that not "swallow the return value" too?
It would also allow explicit conversions: int f() { return 1; } boost::function<std::vector<double>() > func(&f); In Christ, Steven Watanabe