
5 Nov
2005
5 Nov
'05
5:42 p.m.
John Maddock wrote:
bind.cpp(21): error: more than one instance of overloaded function "boost::bind" matches the argument list:
function template "boost::bind<R,F,A1,A2,A3>(F, A1, A2, A3)"
function template "boost::bind(R (*)(B1, B2, B3), A1, A2, A3)"
argument types are: (double (*)(int, char, long), int, int, int)
The compilers are right, unfortunately. Function template partial ordering doesn't take into account the supplied template arguments, <double> in this case.