Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-06-04 10:13:44


From: "David Abrahams" <david.abrahams_at_[hidden]>
> I notice bind() has provisions for wacky things like microsoft calling
> conventions, but what about good-ol' extern "C"?

extern "C" function pointers are sometimes the same as the extern "C++"
function pointers...

> I foolishly tried this on KCC on OSF:
>
> std::binary_search(
> &names[0]
> , names + sizeof(names)/sizeof(*names)
> , name
> , bind<bool>(std::less<int>(), bind(std::strcmp,_1,_2), 0)
> );
>
> ...and of course it failed because of std::strcmp.

... but not always. :-)

> At least this should be addressed in the FAQ, I think.

OK, done.


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