Boost logo

Boost :

From: Brad King (brad.king_at_[hidden])
Date: 2002-07-19 10:54:13


> function<void (char const * name, int mode)> pf;
>
> Might need to figure out how to get this working on MSVC first :(

I've encountered this problem before. I'm pretty sure this works:

funciton<void __cdecl(char const * name, int mode)> pf;

It requires that the calling convention be part of the type. This means a
macro, of course, so perhaps something like:

funciton<void BOOST_FUNCTION_TYPE(char const * name, int mode)> pf;

-Brad


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