6 May
2013
6 May
'13
10:31 a.m.
Hi, Moving from checked dates to unchecked ones by default and forcing to user the Unit specifiers year/month/day in any date constructor (even the unchecked ones) has some ugly consequences. Note that I was able to build an unchecked date as date d(2013,5,6, no_check); Given year y; month m; day d; the following will not compile now as the constructors expects a year but y+1 is an int. date d(y+1, m, d); The user needs to type date d(year(y+1), m, d); Is this what we want to provide to the user or should we add basic arithmetic on these unit specifiers? Best, Vicente