c++precompiled-headerspch

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?


Solution

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

    This question is similar. stdafx.h to header files