2013/5/24 Jakub Jelinek <ja...@redhat.com>: > So, let's talk about other options, is constexpr/const on > std::chrono::steady_clock::is_steady > required by the standard (as in, could we export > _ZNSt6chrono12steady_clock9is_steadyE@@GLIBCXX_3.4.19 > and let the library say which case it is, it would be constexpr when > we know for sure, and a static variable otherwise)? > But looking at C++11 draft, in [time.clock.steady] > it even says that is_steady is true (then we are violating the standard > even when we represent steady_clock as typedef system_clock steady_clock;).
Yes, steady_clock::is_steady needs to be true and to be usable within constant expressions. - Daniel