
5 Sep
2004
5 Sep
'04
8:17 p.m.
David Abrahams wrote:
Why mess around? You don't need to use a void*; just use a void(X::*)(void) for any X. Round-trip reinterpret_cast is guaranteed to work.
Well I don't think this is guarenteed sizeof(void (X::*)(void) == sizeof(void (Y::*)(void). But I'm basing my assumption the VC++ compilers implementation which is often a risky thing to do. VC++'s pointer to members vary in size based on the type, mainly plain inheritance, multiple inheritance and virtual base class involvement. David