Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2006-03-26 15:28:46


On Sun, 26 Mar 2006 19:30:52 +0000 (UTC), george wrote
> hello!
>
> boost::gregorian::days size(1);
>
> boost::gregorian::date_period tmp(period.begin()+=size,period.end()
> -=size);
>
> period=tmp;
>
> is there any better way to increment/decrement the period object
>
> I want
> period.begin+=size;
> period.end()-=size
>
> to be permanent to period but it doesn't,it returns an object...
>
> any idea??
>
> thanks for any help.

See the post on the developer list...

http://article.gmane.org/gmane.comp.lib.boost.devel/140101

Jeff


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net