Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-11-05 12:42:32


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk