The Pimpl Idiom

One of the strengths of OOP is the ability to separate the interface from the implementation. For example, if you are building a cross-platform library, the interface should be common across all platforms and ideally the API should not bring in any platform-specific definitions or header files. This can be awkward when you want to … Read more

Categories C++