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:

     Online docus:
     Discussion: see the threads with "[function types]" in their topic



Boost list run by bdawes at, gregod at, cpdaniel at, john at