Should I use PIMPL everywhere?

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 ?

+4
source share
2 answers

API/, , API , IDE API. PIMPL :

  • ( ).
  • .
  • .

PIMPL, :

  • ( API).
  • ( API).
+3

PIMPL .

, , . C, ++ , , zillion.

( Herb) , , PIMPL , , , .

+3

All Articles