[Development] <chrono> first (was: Re: C++20 @ Qt)

Alvin Wong alvin at alvinhc.com
Wed Jan 25 13:33:27 CET 2023


On 25/1/2023 0:03, Thiago Macieira wrote:
> On Tuesday, 24 January 2023 00:44:37 PST Marc Mutz via Development wrote:
>> On 23.01.23 23:57, Thiago Macieira wrote:
>>> static_assert(sizeof(std::chrono::milliseconds::rep) == 8);
>> Why == and not >=?
> I think we'd want to know if that happened, because a lot of our code will be
> depending on the ± 292 million years limit around the epoch.
>
Not familiar with what Qt already does with std::chrono, but on a first 
glance it seems like `std::chrono::duration<qint64, std::milli>` will be 
better for the purpose, no?



More information about the Development mailing list