How to implement precompiled headers into your project

后端 未结 4 1419
鱼传尺愫
鱼传尺愫 2021-01-30 07:19

I understand the purpose and reasoning behind precompiled headers. However, what are the rules when implementing them? From my understanding, it goes something like this:

4条回答
  •  野性不改
    2021-01-30 08:05

    Your #include "stdafx.h" should be the first line of each cpp file. It shouldn't be used in the .h files. Other than that you're about right.

提交回复
热议问题