[英]Why does Visual Studio 2019 pch (precompiled header) NOT use #pragma once (or should I use the default 1980's preprocessor guard mechanism)?
確保 header 文件僅包含一次的舊“C”方法是舊習慣用法 但即使是關於#pragma once ( https://learn.microsoft.com/en-us/cpp/preprocessor/once ) 的最新文檔也告訴您,出於所有正確的原因,這比“舊的”預處理器方式更好(不污染全 ...