Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-11-05 13:57:25


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
}


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