From: "Philippe A. Bouchard" <philippeb@[...].ca> > > The standard doesn't guarantee that the offset calculated from a given> > static_cast will work again, given the same source and target types.> > Actually doing the static_cast is the only portable way to find the
Base*
> > from a Derived*. Indirection through a function pointer which does the> > static_cast might be an option.> > You mean a container of function pointers (s_rectify) (?)?
I haven't been paying enough attention to your implementation details to
know whether a container is appropriate or neccessary, nor what s_rectify
is.
-----------------------------------------------------------
David Abrahams * Boost Consulting
dave@[...].com * http://www.boost-consulting.com
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost