This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Default to --enable-libstdcxx-time=auto


2013/5/24 Jakub Jelinek <jakub@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]