I know what precompiled headers
are, but I found nothing about pch
-s being included in header
files. Can you do that? I tried it and it worked. Does it have some drawbacks?
Asked
Active
Viewed 302 times
0

Uytab
- 85
- 1
- 7
-
It depends on your compiler. Precompiled headers are not part of standard C++. – Pete Becker May 20 '21 at 12:23
1 Answers
1
You can do that. Just check to see if your compile times actually go down.
This question is similar. stdafx.h to header files

JMRC
- 1,473
- 1
- 17
- 36