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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…