
18 Aug
2004
18 Aug
'04
11:16 p.m.
Jonathan Turkanis wrote:
For overload resolution by arity one could write:
boost::overload< by_arity<3> >::resolve(&C::g)
but that's still a bit cumbersome.
#include <boost/bind.hpp> struct V { int f(); int f(int); }; int main() { boost::bind( &V::f, _1 ); // V::f() boost::bind( &V::f, _1, _2 ); // V::f(int) } ;-)