|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-25 06:33:06
From: "David Abrahams" <david.abrahams_at_[hidden]>
> Yes, I expected that. It's not the same everywhere.
> G++ 3.0.3 likes it, but 2.95.x chokes on windows and on linux:
2.95.3 works.
The problem with 2.95.x is that
extern "C" void f(args);
is interpreted as
extern "C" void f(...);
2.95.3 does this only for f(), but not for f(int) or f(void).
If you're on a reasonably good compiler (with partial ordering), you can
always use
boost::bind<void>(f)
that ignores the type of f and will work for anything.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk