为什么
<chrono>
在Google CPP指南中是未批准的头文件?我在Google CPP风格指南中没有找到任何关于这个直接的提及。这一点提到了<ratio>
和<cfenv>
的可移植性问题,但没有提到<chrono>
。<chrono>
在Google CPP指南中是未批准的头文件?我在Google CPP风格指南中没有找到任何关于这个直接的提及。这一点提到了<ratio>
和<cfenv>
的可移植性问题,但没有提到<chrono>
。
<chrono>
库被禁止使用。由于您的情况不同,您可以通过添加// NOLINT [build/c++11]
来忽略此行。 - florisla