
17 Nov
2009
17 Nov
'09
7:07 p.m.
2009/11/17 Eugene Yakubovich
Hello,
The following code does not compile (gcc 4.3.2, boost 1.40).
#include
using boost::bind; void foo(int) {}
template <class F> void invoker(F f) { f(); }
template <class F> void call(F f) { bind(invoker<F>, f)();
try this: bind(invoker<F>, boost::protect(f))(); Roman Perepelitsa.