PImpl

Learn about PImpl (pointer to implementation).

Overview

Suppose that we have a class with the name Weather. Let’s assume that this class is used by many other classes with hundreds of lines of code. Any changes made to the Weather class (even if they are just to one line) will cause recompilation of the Weather class, plus all the classes (that have hundreds of lines of code) that use the ...