
"Jeff Garland" <jeff@crystalclearsoftware.com> writes:
On Sun, 25 Apr 2004 17:03:18 -0400, David Abrahams wrote
So maybe a new type should be made that just represents year & month. Every year still only has 12 months. Of course, your problem comes back if you want to mix days in.
Exactly, and I don't know what I would do with this type without mixing
On Sun, 25 Apr 2004 18:43:03 -0400, David Abrahams wrote them
back in...
if (some_date.is_in(Jun/2004)) std::cout << "that's a hot one!";
You didn't need to invent a type to do this
The type is that of Jun/2004
Ok my first email didn't help. My point was that there are lots of other ways to do the function you are suggesting that are more consistent with the current library and don't require the addition this type which we can't even seem to create a name for. Basically, your example isn't a compelling use case for me. Jeff