ยง 20.11.7.2 of the standard definition of C ++ 11 steady_clock :
class steady_clock { public: typedef unspecified rep; typedef ratio<unspecified , unspecified > period; typedef chrono::duration<rep, period> duration; typedef chrono::time_point<unspecified, duration> time_point; static const bool is_steady = true; static time_point now() noexcept; };
So yes, std::steady_clock::now() should be noexcept , and this is not a documentation error. The cppreference seems to say the same thing .
source share