> One of the flaws with pure encapsulation is that you can see a drop in performance. Having a bunch of functions to get inner members of a structure also blocks the compiler from optimizing it’s best.
Why can't you just use an optimizing compiler? Trading casting const away, doesn't seem right to me.