When should pre-compiled headers be used? You can explain on your fingers and with some example. I read in the wiki, in principle, everything is clear. Only when they need to be applied in real projects, and when they are not needed, I did not understand :(
2 answers
The larger the project, the more necessary it is. All that changes is compile time. Use - it will not be worse. Maybe it does not make sense only in very small programs.
Because This is a compiler option, and not an extension of the language, it will not interfere with compiling something else.
It is necessary to apply always when compile time is critical. If the project is large and the resources of the workstation are limited, then the assembly time of a large project can stretch for tens of minutes. That makes the debugging cycle quite difficult: fix, build, run, check. And if the assembly of the whole project takes seconds, then it is quite possible to do without precompiled headers.