My current project involves creating a C ++ API, and I decided to use the PIMPL idioms.
Should I use the PIMPL idiom everywhere in my project, for example, I need to create a custom class that inherits from std::exception, should I create this class with the PIMPL idiom, or can I just write as a public implementation?
It is incorrect to assume that only because I use the PIMPL idiom that every class that I create must create. Are there exceptions in which PIMPL should not be used ?
Soapy source
share