|
Boost : |
From: Rob Stewart (stewart_at_[hidden])
Date: 2004-04-14 10:53:00
From: Val Samko <boost_at_[hidden]>
> Wednesday, April 14, 2004, 5:05:37 AM, you wrote:
>
> The only requirement for the add_month function I have is that
> after d2 = add_month(add_month(d1, N), -N),
> d1 and d2 should be in the same month.
Why do you have that requirement? Note that that fits my
"next_month" idea just fine.
> Someone developing a million line program should understand that
> add_month(add_month(d, 1), 1) may be not the same day as
> add_month(d, 2).
Shouldn't they expect them to arrive at the same or very nearly
the same answer?
-- Rob Stewart stewart_at_[hidden] Software Engineer http://www.sig.com Susquehanna International Group, LLP using std::disclaimer;
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk