Uytab
Uytab

Reputation: 93

Is it allowed to include a precompiled header into a header file?

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?

Upvotes: 0

Views: 544

Answers (1)

JMRC
JMRC

Reputation: 1514

You can do that. Just check to see if your compile times actually go down.

This question is similar. stdafx.h to header files

Upvotes: 1

Related Questions