Q:

c++ object model disadvantage. What is the solution?

I m in learning  phase of c++. While reading inside the c++ Object model, i understood the
the different object models. 
1) Simple Object Model.
2) Table driven object model.
3) c++ Object model.
Question:
"Its primary drawback is the need to recompile unmodified code that makes use of an object of a class for which there has been an addition, removal, or modification of the nonstatic class data members."
I understood the above statement. Any changes that happens in the class definition, then 
the source code that uses the same class needs to be recompiled. 
that means, there is some why to achieve the same without recompilation also. How to do that?  If someone provides the sample code that would be great. I am using g++ in Linux/Ubuntu. 

A:

Typical idiom to prevent recompilation while modifying class is PImpl.
http://en.wikipedia.org/wiki/Opaque_pointer#C.2B.2B

