Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are header guards unnecessary in stdafx.h?

I don't understand why header guards are not used in pre-compiled headers... Any ideas?

like image 955
aCuria Avatar asked Oct 23 '25 18:10

aCuria


1 Answers

Because "stdafx.h" has to be the first include in .cpp files, not anywhere else.

like image 168
Xeo Avatar answered Oct 26 '25 07:10

Xeo