|
 |
On Wed, 18 Mar 2009 17:44:23 +0100, Darren New <dne### [at] san rr com> wrote:
>
> [1] For example, you could declare an identical class with a different
> name, except with all the privates public, then cast a pointer to the
> private class into a pointer to the public class. Don't even need to
> depend on compiler-specific knowledge about element layout and such. Or
> just declare a child class that is happy to change any of its private
> variables.
Except that the compiler is not required to generate the same layout in
those two cases, so you would still depend on compiler-specific knowledge.
--
FE
Post a reply to this message
|
 |