Boost logo

Boost Users :

From: Zeljko Vrba (zvrba_at_[hidden])
Date: 2005-08-05 00:56:55

David Abrahams wrote:
> However, reliably taking the address of an overloaded function
> involves knowing the exact types in its signature. I'm not sure how
> you can do that.
I have googled a bit and found the following example in the Microsoft
C++ reference:

int Func( int i, int j );
int Func( long l );


int (*pFunc) ( int, int ) = Func;

Do you see any problems with this?

I guess it should be possible to take an address of an operator by
replacing 'Func' with e.g. 'operator<'. I'll try it and report the result.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at