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: http://tinyurl.com/cljnn

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 hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net