
5 Nov
2005
5 Nov
'05
6:57 p.m.
John Maddock wrote:
The compilers are right, unfortunately. Function template partial ordering doesn't take into account the supplied template arguments, <double> in this case.
Oh shucks, OK I'll have to document that as a non-conformity in the Tr1 docs.
The upside (in addition to supporting legacy compilers) is that you can do this: void f( int ); // #1 void f( int, int ); // #2 int main() { boost::bind( f, 1 ); // chooses #1 boost::bind( f, 1, 2 ); // chooses #2 }