Google Style Guide “<chrono> is an unapproved C++11 header”

∥☆過路亽.° 提交于 2019-12-01 17:37:10

问题


Why is <chrono> an unapproved header in the Google CPP Guide? I can't find any direct mention of this in the Google CPP Style Guide. This point mentions portability issues with <ratio> and <cfenv> but nothing about <chrono>.


回答1:


According to C++11 use in Chromium The reason is

Duplicated Time APIs in base/. Keep using the base/ classes.



来源:https://stackoverflow.com/questions/33653326/google-style-guide-chrono-is-an-unapproved-c11-header

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!