Boost logo

Boost Users :

From: Steve Johns (steve.johns_at_[hidden])
Date: 2007-02-12 14:56:35


Getting started with Boost::Date_Time ...

It seems that this is OK:

greg_year y1(2000);
y1 = y1 + 1;

but this is not:

greg_year y1(2000);
y1++;

I take it that the increment and decrement operators are not implemented for
greg_year (or the corresponding month, day, etc. types).
Is this just incidental to the current implmentation, or is there some
particular architectural or domain reason why ++ and -- aren't in the mix?

- Steve


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