This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [c++0x] std::chrono units bug?


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.


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