
9 Jul
2004
9 Jul
'04
6:06 p.m.
Stefan Slapeta wrote:
Hi all,
this code sample produces a compiler error on VC 7.1. It seems that boost::bind isn't able to get the right type for the specialization of the member function template [&Test::g<Type1, Type2>].
Is there a good workaround? (The only one I could find so far is to 'hide' the function template as normal member function in a class template.)
Use void (Test::*pmf) (Type1, Type2) = &Test::g; boost::function<void (Type1, Type2)> bf = boost::bind(pmf, this, one, two);