问题
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 inbase/
. Keep using thebase/
classes.
来源:https://stackoverflow.com/questions/33653326/google-style-guide-chrono-is-an-unapproved-c11-header