How do I work around this problem with bind?
#include
namespace
{
class functions
{
public:
int func( int );
int func( int, int );
};
void test()
{
functions a_func;
boost::bind(
functions::func, a_func, 1, _1 );
}
}
Bind can't determine which function to call because it is overloaded and
it doesn't know the context in which it will be called.
With CodeWarrior 8 on Mac OS X I get "illegal use of template argument
dependent type 'T::result_type'
It references an "unspecified" template deep in the bowels of bind.
As I recall there was some way of helping bind to pick one of the
overloaded functions using a typedef or something similar. (Maybe that
was function?).
Thanks for any tips,
...Duane