Orchid Win7 v1 <voi### [at] devnull> wrote:
> I saw an FAQ page somewhere that had examples of systems where the size
> of a pointer really does change depending on what it points to.
Many C programmers assume that you can convert any pointer to void*
and back, as they assume that all pointers have the same size.
In C++ you can't always make that assumption. More precisely, a pointer
to a virtual function is (most probably) larger than a regular function
pointer. A pointer-to-virtual-function cannot be converted to void* and
back without malfunction.
--
- Warp
Post a reply to this message
|