Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2005-06-17 19:17:49


Hi Jeff,

Jeffrey Williams wrote:
> Today I had the need to use function_traits on a __stdcall function. It did
> not work, so I wrote a quick template called remove_stdcall which removes
> the __stdcall qualifier from a function (if it has one) which then allows
> you to pass it onto the function_traits. If there is any interest in adding
> it to type traits I'll post my code. (only about 100 lines and most is cut
> n paste for arity support).

Since you are using function_traits, you might want to take a look at Function
Types, which is a small library that can take apart all built-in function types
(and put them back together, as well). It is highly configurable to support
several different calling convention (not just __stdcall).

It is not part of Boost, but currently under review (details on the review
process can be found here: http://tinyurl.com/2nljq).

     ZIP-Archive: http://tinyurl.com/4oe7q
     Online docus: http://tinyurl.com/4fw9n
     Discussion: see the threads with "[function types]" in their topic

Regards,

Tobias


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