Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-03-20 02:31:28


Vesa Karvonen wrote:
>
> Of course, you might actually want to do something a bit more complicated,
> such as an inline wrapper for each function:
>
> public: int foo(int p0, float p1) {return foo_ptr(p0,p1);}
> private: int (__stdcall *foo_ptr)(int,float);
>

That is what the current macros do. I was playing around with the typedefs to get a hang on BPL.

> So that the user can not write to the member. For this task, you might
> actually want to use the preprocessor library.

That what I would like to do. Currently I have hand coded DECLARE_FUNCTION_N makros for N in [0, 9] which I would like to refactor.

Markus


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