There are some cases when we include .cpp file instead of standard header file (.h), for example:
#include "example.cpp"
instead of
#include "example.h"
It seems to work but is this safe or should I avoid it?
What about the compilation time?
See Question&Answers more detail:os