[c++0x] std::chrono units bug?

Jonathan Wakely jwakely.gcc@gmail.com
Tue Jan 19 19:40:00 GMT 2010


2010/1/19 Germán Diago:
>
>  Anyway, sorry because I thought this was a good place to inform because
>  it's about libstdc++. Bye.

But it's not about libstdc++, it's about your own code.

chrono::seconds and chrono::milliseconds use integral types as their
representation, so implicit conversions are not supported and you need
to use duration_cast.



More information about the Libstdc++ mailing list