From: Val Samko (boost_at_[hidden])
Date: 2004-04-12 08:21:21
>> The main problem I see with this syntax is that
>> d + months(MONTHS) + DAYS;
>> is not equivalent to
>> d + DAYS + months(MONTHS);
>> and I sometimes this might lead to the error prone code. This is why
>> I prefer to use add_month function.
JG> True. And this fact has been one factor in keeping this function out of the
JG> library before. Still, if it is well documented I'm starting to think the
JG> risk might be worth it since 'month' becomes a first class object that can be
JG> used in interfaces and as a data member in classes.
True. In any case, there is a point of having the add_month(const
date&, int) function as well.
>> I'm currently using my home grown date classes. I will switch to
>> the Date-Time, once these changes will be available in the boost
JG> You are aware that this won't be for a couple months (at least), right?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk