Boost logo

Boost :

Subject: Re: [boost] [gsoc 2013] draft proposal for chrono::date
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-05-04 13:44:09


Le 04/05/13 19:14, Anurag Kalia a écrit :
>> Why? You need the cache to access the ymd from days and another to
>> validate a date when construction a days date from ymd.
>> Couldn't you have a cache indexed by year/month that gives you the
>> number of days since an epoch (for some years of course)?
> That means that I need to still calculate year and month. I want to cut this
> step too. I want to directly access y,m,d from the serial field. That's why.
> It doesn't mean that the array that you are suggesting wouldn't be present;
> both have different uses.
How would you calculate the days from year/month/day?

Best,
Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk