|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-24 15:41:16
From: "David Abrahams" <david.abrahams_at_[hidden]>
> Beg pardon, but do function and bind work with extern "C" functions?
> That would be extremely useful to me.
#include <boost/bind.hpp>
extern "C" void f(void) {}
int main()
{
boost::bind(f)();
}
works for me on MSVC, bcc, g++. I don't know why. :-) Perhaps because an
extern "C" function pointer happens to be the same as an ordinary C++
function pointer on win32.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk