|
![](/i/fill.gif) |
On Thu, 24 Jul 2008 14:24:51 +0200, Vincent Le Chevalier
<gal### [at] libertyallsurfsp amfr> wrote:
> I was thinking the same, but I can't seem to find the right type
> definition to make it work without casting to and from void*... Which is
> apparently illegal
> (http://www.parashift.com/c++-faq-lite/pointers-to-members.html#faq-33.8)
It is illegal because a 'void *' is a data pointer, not a function pointer.
On a related note, we do not know if the original code was supposed to be
standards-compliant or not, nor if it was supposed to be C or C++.
> Here's what I ended up with:
[...snipped...]
The "right" way to do it, assuming C++:
http://www.gotw.ca/gotw/057.htm
--
FE
Post a reply to this message
|
![](/i/fill.gif) |